Undeclared parameter that is not referenced in a for..in construct not flagged as an error. #140

rhdunn opened this Issue Nov 4, 2015 · 0 comments


None yet
2 participants

rhdunn commented Nov 4, 2015


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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment