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
Confirmed. I have a fix ready for this, but the PR would conflict with open PRs #3102 and #3103, so I'll wait with pulling it until those have been merged.
As PRs #3102 and #3103 have been merged, I've pulled the fix for this issue - PR #3129. Testing appreciated.
gsherwood
changed the title
Squiz.WhiteSpace.OperatorSpacing.NoSpaceAfter false positive
Squiz.WhiteSpace.OperatorSpacing false positive for negation in arrow function
Oct 13, 2020
Describe the bug
Minus
-
used as negation of brackets result is okay infunction
but not infn
Code sample
This is reported
This is not reported
Custom ruleset
To reproduce
test.php
with the code sample aboveruleset.xml
with custom ruleset abovephpcs test.php --standard=ruleset.xml
Expected behavior
Code is not reported as invalid or at least have same behavior for both contexts (
function
andfn
)The text was updated successfully, but these errors were encountered: