declare function foo() {
for $bar in $bar return <bar>{$bar}</bar>
};
The IDE does not flag $bar from the in $bar section as undeclared. The for $bar part is declaring $bar for the return <bar>{$bar}</bar> section, so those references to $bar should not be flagged with errors.
Given:
The IDE does not flag
$bar
from thein $bar
section as undeclared. Thefor $bar
part is declaring$bar
for thereturn <bar>{$bar}</bar>
section, so those references to$bar
should not be flagged with errors.