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
@hirasso thanks for the report. Please use single_space_around_construct to achieve what you need 🙂.
The interesting part is why it's not a part of PSR-2, it's only included in @Symfony (and inherited in @PhpCsFixer). @keradus@julienfalque do you have historical context?
Well, it depends how you want it to work. As for any configurable rule you can use true for default config, or you can provide your own, using available options described in the docs.
Bug report
I just found a minor issue: PHP CS Fixer doesn't insert a space after the
switch
keyword, so this won't be fixed:PHP_CodeSniffer's
phpcbf
fixes the missing space as expected:Description
Following the relevant paragraph in PSR-2,
switch
statements should be treated similarly toif
statements and thus should be followed by a space.Runtime version
Used command
Configuration file
Code snippet that reproduces the problem
The text was updated successfully, but these errors were encountered: