1.2.316. Create Foreach Default¶
This command adds DEFAULT link from the blind variables to the literal definitions, when they are available. This adds sources for static loops, which are based on hardcoded list of data. Dynamic loops are not affected.
<?php
// $a may b e 1, 2 or 3
foreach([1,2,3] as $a) {
echo $a;
}
?>
1.2.316.1. Specs¶
Short name |
Complete/CreateForeachDefault |
Rulesets |
|
Exakat since |
1.9.9 |
PHP Version |
All |
Severity |
|
Time To Fix |
|
Precision |
Medium |
Available in |