Squiz.Operators.IncrementDecrementUsage.Found no longer works with missing spaces #325
Closed
3 tasks done
Labels
Milestone
Describe the bug
In phpcs 2.5.0, we correctly add a
Squiz.Operators.IncrementDecrementUsage.Found
error when writing$a+=1
without spaces. In phpcs 3.7.2, the error is missing.Code sample
Custom ruleset
To reproduce
Steps to reproduce the behavior:
test.php
with the code sample above...phpcs test.php ...
Expected behavior
We should have also have an error on line 5
Versions (please complete the following information)
Please confirm:
master
branch of PHP_CodeSniffer.The text was updated successfully, but these errors were encountered: