You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The 'scope_condition' key doesn't always get set correctly in the $tokens array.
Consequently, tokens within the curlies do not get the 'conditions' array set correctly either.
Describe the bug
The
'scope_condition'
key doesn't always get set correctly in the$tokens
array.Consequently, tokens within the curlies do not get the
'conditions'
array set correctly either.Both things can trip sniffs up.
Code sample
Token debug output
As can be seen here, token 9 - 13 correctly have the scope conditions set, while token 30 - 34 do not.
Expected behavior
That the conditions get set correctly in all cases ;-)
Versions (please complete the following information)
master
Please confirm:
master
branch of PHP_CodeSniffer.The text was updated successfully, but these errors were encountered: