vscode-intelephense
vscode-intelephense copied to clipboard
Improvement: warn about overriding variable of outer loop in the inner loop
It is frequently occurrence issue that we occasionally override variable from outer loop by using the same name in the inner loop. PHPStrom can detect those, and it would be amazing if Inteliphense could do the same.
<?php
foreach ($foo as $value) {
// code
foreach ($bar as $value) {
// code
}
// $value was overridden
}
