1.2.178. Collect Literals¶
Collects all literals in the application. Strings, integer, float are collected. Booleans, null and arrays are not.
<?php
$a = 1;
// The array is not collected, but the C and 4 are.
$b = ['C' => 4];
?>
1.2.178.1. Specs¶
Short name |
Dump/CollectLiterals |
Rulesets |
|
Exakat since |
1.9.5 |
PHP Version |
All |
Severity |
Minor |
Time To Fix |
Quick (30 mins) |
Precision |
High |
Available in |