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.Namespace.NamespaceDeclaration false positive on namespace operator #3184

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Dec 9, 2020

When the namespace keyword was used as an operator, the sniff would incorrectly throw an error too.

Fixed now.

Includes unit test.

When the `namespace` keyword was used as an operator, the sniff would incorrectly throw an error too.

Fixed now.

Includes unit test.
jrfnl added a commit to Yoast/wp-test-utils that referenced this pull request Dec 9, 2020
One of the PSR2 sniffs used contains a bug.
The bug has been reported upstream in squizlabs/PHP_CodeSniffer#3184 including a fix.

This temporary exclusion should be removed once the upstream PR has been merged and included in a tagged release.
@gsherwood gsherwood added this to the 3.6.0 milestone Dec 15, 2020
@gsherwood gsherwood changed the title PSR2/NamespaceDeclaration: false positive on namespace operator PSR2.Namespace.NamespaceDeclaration false positive on namespace operator Dec 15, 2020
gsherwood added a commit that referenced this pull request Dec 15, 2020
@gsherwood gsherwood merged commit 98dd8d3 into squizlabs:master Dec 15, 2020
@gsherwood
Copy link
Member

Thanks for fixing this

@jrfnl jrfnl deleted the feature/psr2-namespacedeclaration-fix-false-positive branch December 15, 2020 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants