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

BCFile/ObjectDeclarations::getDeclarationName(): compatibility with PHPCS 4.x #110

Merged

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Mar 18, 2020

PHPCS removes support for the JS and CSS tokenizers, which includes removing the File::$tokenizerType property.

This commit makes it so the BCFile::getDeclarationName() and the ObjectDeclarations::getDeclarationName() methods won't throw an error for the property not existing.

And just to be clear: while PHPCSUtils in combination with PHPCS 2.x and 3.x may incidentally support JS/CSS, in combination with PHPCS 4.x, JS/CSS will explicitly not be supported.

Ref: squizlabs/PHP_CodeSniffer@ea52e7b

…HPCS 4.x

PHPCS removes support for the JS and CSS tokenizers, which includes removing the `File::$tokenizerType` property.

This commit makes it so the `BCFile::getDeclarationName()` and the `ObjectDeclarations::getDeclarationName()` methods won't throw an error for the property not existing.

And just to be clear: while PHPCSUtils in combination with PHPCS 2.x and 3.x _may_ incidentally support JS/CSS, in combination with PHPCS 4.x, JS/CSS will explicitly not be supported.

Ref: squizlabs/PHP_CodeSniffer@ea52e7b
@jrfnl jrfnl added this to the 1.0.0 milestone Mar 18, 2020
@jrfnl jrfnl merged commit e95038f into develop Mar 18, 2020
@jrfnl jrfnl deleted the feature/getdeclarationname-compatibility-with-phpcs-4.x branch March 18, 2020 11:10
@jrfnl jrfnl mentioned this pull request Mar 26, 2020
5 tasks
@jrfnl jrfnl modified the milestones: 1.0.0, 1.0.0-alpha3 May 1, 2020
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.

1 participant