Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #6112 [BinaryOperatorSpacesFixer] Fix align of
=
inside calls o…
…f methods (VincentLanglet) This PR was squashed before being merged into the master branch (closes #6112). Discussion ---------- [BinaryOperatorSpacesFixer] Fix align of `=` inside calls of methods Hi. I found a bug when using align/align_with_space_minimal for `=`. Before, any time a `(` was found, the check was skipped until the `)`. Now, I do this only for `(` for function definition and for/foreach/if/while/... So ``` $this->foo(function () { $a = 1; $aa = 2; }) ``` aligns the `=`. It fix my personal issue (I added a test), and I think it will fix the issue #5667 Commits ------- f7750fd [BinaryOperatorSpacesFixer] Fix align of `=` inside calls of methods
- Loading branch information
Showing
2 changed files
with
36 additions
and
2 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