1.2.314. Create Compact Variables¶
This command creates Variable definitions, based on usage of compact(). This only works when compact() is used with literal values, or with constants. Dynamic values are not reported.
<?php
function foo() {
$a = 1;
return compact('a');
}
?>
1.2.314.1. Connex PHP features¶
1.2.314.1.1. Specs¶
Short name |
Complete/CreateCompactVariables |
Rulesets |
|
Exakat since |
1.9.2 |
PHP Version |
All |
Severity |
|
Time To Fix |
|
Precision |
Very high |
Available in |