Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #4934 YodaStyleFixer - fix for conditions weird are (kubawerlos)
This PR was squashed before being merged into the 2.15 branch (closes #4934). Discussion ---------- YodaStyleFixer - fix for conditions weird are While on the [other](#4929) fix working I was, it thinking me made what the reason is for these conditions: ```php if ($token->isComment() || $token->isWhitespace()) { if ($expectNothing) { return false; } continue; } ``` Why do the check we want for `$expectNothing` only for comments and whitespaces, expect the opposite I would. So these 2 test case added I have and what weird is only 1 failed has: https://travis-ci.org/github/FriendsOfPHP/PHP-CS-Fixer/jobs/678270023 The fix to not nest them is, @bgotink, @keradus and @SpacePossum I ping (as they the authors are) to review. May the force be with you. Commits ------- 60dc742 YodaStyleFixer - fix for conditions weird are
- Loading branch information