-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #5597 Tokens - fix for checking block edges (kubawerlos)
This PR was squashed before being merged into the 2.18 branch. Discussion ---------- Tokens - fix for checking block edges Found this when investigating #5533. [This loop](https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/v2.18.4/src/Fixer/Operator/TernaryToElvisOperatorFixer.php#L210) was problematic, `)` was passed to `findBlockEnd` and it was returning index of `(` and thus loop was infinitive. See separate commits for better understanding if needed. Commits ------- eb4a86b Tokens - fix for checking block edges
- Loading branch information
Showing
2 changed files
with
50 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters