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
Generic/InlineControlStructure: bail early for control structures without body
The sniff now consistently handles all supported control structures
without a body, in both PHP and JS, by bailing early. Extending the
existing behavior for `while` and `for` to also include `do
while`, `else`, `elseif`, `if`, and `foreach` (PHP only).
Previously, the sniff would incorrectly flag these empty control
structures as inline control structures that needed curly braces.
0 commit comments