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

PSR2.Methods.MethodDeclaration gets confused over comments between modifier keywords #2211

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Nov 1, 2018

The PSR2.Methods.MethodDeclaration sniff would get unnecessarily confused over comments between the modifier keywords.

This minor changes fixes that.

Includes (adjusted) unit tests demonstrating the issue.

The `PSR2.Methods.MethodDeclaration` sniff would get unnecessarily confused over comments between the modifier keywords.

This minor changes fixes that.

Includes (adjusted) unit tests demonstrating the issue.
@gsherwood gsherwood added this to the 3.4.0 milestone Nov 1, 2018
@gsherwood gsherwood added this to Backlog in PHPCS v3 Development via automation Nov 1, 2018
@gsherwood gsherwood changed the title PSR2/MethodDeclaration: improve tolerance for comments PSR2.Methods.MethodDeclaration gets confused over comments between modifier keywords Nov 1, 2018
@gsherwood gsherwood merged commit a97638f into squizlabs:master Nov 1, 2018
PHPCS v3 Development automation moved this from Backlog to Ready for Release Nov 1, 2018
gsherwood added a commit that referenced this pull request Nov 1, 2018
@gsherwood
Copy link
Member

Thanks for fixing this

@jrfnl jrfnl deleted the feature/2198-psr2-property-modifier-keywords-order branch November 2, 2018 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
PHPCS v3 Development
Ready for Release
Development

Successfully merging this pull request may close these issues.

None yet

2 participants