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

PHPCS 4.x: let T_STATIC be T_STATIC #3121

Closed
wants to merge 1 commit into from

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Sep 21, 2020

Implementation of the proposal outlined in issue #3115.

  1. Removes the Tokenizer/PHP code which made an exception for instanceof static.
  2. Adds an exception for instanceof static to the Squiz.WhiteSpace.ScopeKeywordSpacing sniff for which the tokenizer code was originally put in place.

The tests for all other sniffs still pass.

I've had a quick look through the other sniffs which refer to the T_STATIC token, but didn't see any which should be impacted by this change (and didn't have unit tests with instanceof static).

Fixes #3115

@gsherwood gsherwood added this to the 4.0.0 milestone Sep 21, 2020
@jrfnl jrfnl force-pushed the feature/3115-let-static-be-static branch from 13311ae to c644756 Compare November 28, 2020 02:54
@jrfnl
Copy link
Contributor Author

jrfnl commented Nov 28, 2020

Rebased for imaginary merge conflict.

@jrfnl jrfnl force-pushed the feature/3115-let-static-be-static branch from c644756 to b113d5d Compare February 13, 2021 11:45
@jrfnl
Copy link
Contributor Author

jrfnl commented Feb 13, 2021

Rebased for merge conflict.

@jrfnl jrfnl force-pushed the feature/3115-let-static-be-static branch 3 times, most recently from 268e2a8 to 2f97842 Compare March 7, 2021 22:18
Implementation of the proposal outlined in issue 3115.

1. Removes the Tokenizer/PHP code which made an exception for `instanceof static`.
2. Adds an exception for `instanceof static` to the `Squiz.WhiteSpace.ScopeKeywordSpacing` sniff for which the tokenizer code was originally put in place.

The tests for all other sniffs still pass.

I've had a quick look through the other sniffs which refer to the `T_STATIC` token, but didn't see any which should be impacted by this change (and didn't have unit tests with `instanceof static`).

Fixes 3115
@jrfnl
Copy link
Contributor Author

jrfnl commented Dec 2, 2023

Closing as replaced by PHPCSStandards/PHP_CodeSniffer#37

@jrfnl jrfnl closed this Dec 2, 2023
@jrfnl jrfnl deleted the feature/3115-let-static-be-static branch December 2, 2023 01:59
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