Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MethodChainingIndentationFixer, ArrayIndentationFixer - Fix priority issue #4276

Conversation

dmvdbrugge
Copy link
Contributor

Fixes #4271.

Pre-2.12.5 MethodChainingIndentationFixer had no priority, I introduced it in #4084. It now needs to be upped because it needs to keep running before ArrayIndentationFixer.

Lowering ArrayIndentationFixer was not an option as it already has multiple fixers running after it (which are in the FixerFactoryTest, but not in its comments, however the comments are already being fixed in #4245).

@julienfalque julienfalque added this to the 2.12.7 milestone Jan 21, 2019
@keradus keradus changed the title MethodChainingIndentationFixer - ArrayIndentationFixer - Priority MethodChainingIndentationFixer, ArrayIndentationFixer - Fix priority issue Jan 26, 2019
@keradus
Copy link
Member

keradus commented Feb 3, 2019

Thank you @dmvdbrugge.

@keradus keradus merged commit a6bd13c into PHP-CS-Fixer:2.12 Feb 3, 2019
keradus added a commit that referenced this pull request Feb 3, 2019
… priority issue (dmvdbrugge)

This PR was merged into the 2.12 branch.

Discussion
----------

MethodChainingIndentationFixer, ArrayIndentationFixer - Fix priority issue

Fixes #4271.

Pre-2.12.5 `MethodChainingIndentationFixer` had no priority, I introduced it in #4084. It now needs to be upped because it needs to keep running before `ArrayIndentationFixer`.

Lowering `ArrayIndentationFixer` was not an option as it already has multiple fixers running after it (which are in the `FixerFactoryTest`, but not in its comments, however the comments are already being fixed in #4245).

Commits
-------

a6bd13c MethodChainingIndentationFixer should run before ArrayIndentationFixer
@dmvdbrugge dmvdbrugge deleted the 4271-method_chaining_indentation,array_indentation-priority branch February 4, 2019 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants