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
gsherwood
changed the title
phpcbf corrupts code by Generic.ControlStructures.InlineControlStructure.NotAllowed
Auto-fixing fails for inline control structures containing a closure
Jun 20, 2018
gsherwood
changed the title
Auto-fixing fails for inline control structures containing a closure
Generic.ControlStructures.InlineControlStructure fixing fails when inline control structure contains closure
Jun 20, 2018
phpcbf corrupts code by Generic.ControlStructures.InlineControlStructure.NotAllowed sniff.
Consider this code:
phpcbf transforms it to:
Which is incorrect - semicolon is placed wrongly.
phpcs.xml is very simple:
Version:
The text was updated successfully, but these errors were encountered: