1.2.198. Collects Variables¶
This rule collects all variables from the code. Their type is mentionned, as variable, object or array, depending on their usage.
<?php
// variable : array
$array[1] = 2;
// variable : variable
$value = 3;
// variable : object
$object->property;
?>
1.2.198.1. Connex PHP features¶
1.2.198.1.1. Specs¶
Short name |
Dump/CollectVariables |
Rulesets |
|
Exakat since |
2.1.7 |
PHP Version |
All |
Severity |
Minor |
Time To Fix |
Quick (30 mins) |
Precision |
Very high |
Available in |