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 Squiz.PHP.DisallowMultipleAssignments sniff is giving a Found error “Assignments must be the first block of code on a line” for the following code snippet:
gsherwood
changed the title
Unexpected Squiz.PHP.DisallowMultipleAssignments.Found error
Squiz.PHP.DisallowMultipleAssignments.Found error when var assignment is on the same line as an open tag
Jan 17, 2017
Uh oh!
There was an error while loading. Please reload this page.
The
Squiz.PHP.DisallowMultipleAssignments
sniff is giving aFound
error “Assignments must be the first block of code on a line” for the following code snippet:If I put a line break after
<?php
then it passes:I would expect both snippets to not raise errors for
Squiz.PHP.DisallowMultipleAssignments
.The text was updated successfully, but these errors were encountered: