Closed kkmuffme closed 1 year ago
Closing as invalid. This behaviour is unchanged. I've tested all the way back to PHPCS 2.6.0 and also tested with WPCS 2.3.0.
But it's still wrong - there's no code standard that wants a space before a binary or, is there?
But it's still wrong - there's no code standard that wants a space before a binary or, is there?
No, it's not wrong. Nearly all sniffs are opinionated in one way or another. Clearly the standard you are using is of the opinion that there should be a space as they selected and enabled this sniff.
Describe the bug
Space added before bitwise or
Code sample
Custom ruleset
Using
WordPress
https://github.com/WordPress/WordPress-Coding-StandardsTo reproduce
Steps to reproduce the behavior:
test.php
with the code sample above...phpcs test.php ...
With phpcbf it get's autofixed to
Expected behavior
No error/change.
Afaik this worked correctly before.
Versions (please complete the following information)
Please confirm:
master
branch of PHP_CodeSniffer.