Skip to content

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

Development

Successfully merging this pull request may close these issues.

2 participants