Skip to content

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Dec 24, 2022

Drop the PHPCS23Utils standard

... which provided the basis of the compatibility layer with PHPCS 2.x. This is no longer needed now PHPCS 3.7.1 is the minimum PHPCS version.

Tokens\Collections: remove the deprecated $magicConstants property.

Use the PHPCS native Tokens::$magicConstants property or the PHPCSUtils\BackCompat\BCTokens::magicConstants() method instead.

Follow up on #106, #172, #311.

Tokens\Collections: remove the deprecated $OONameTokens property.

Use the PHPCSUtils\Tokens\Collections::namespacedNameTokens() method instead.

Follow up to #113, #202.

Tokens\Collections: remove previously deprecated methods

Follow up to #347.

Tokens\Collections: make deprecated properties private

... and remove the remaining methods without logic (but which had a name change one way or the other).

Follow-up after #202, #311.

Includes updating the tests:

  • Mostly remove method specific tests and move those to the PropertyBasedTokenArraysTest.
  • For the "type" token arrays - update the order of the expected arrays.

Utils\FunctionDeclarations: remove the deprecated arrow function related methods

Use the T_FN token directly instead.

Follow up to #347.

Utils\ControlStructures: remove the deprecated getDeclareScopeOpenClose() method

Use the the scope_opener/scope_closer on the T_DECLARE token instead.

Follow up to #347.

... which provided the basis of the compatibility layer with PHPCS 2.x. This is no longer needed now PHPCS 3.7.1 is the minimum PHPCS version.
Use the PHPCS native `Tokens::$magicConstants` property or the `PHPCSUtils\BackCompat\BCTokens::magicConstants()` method instead.

Follow up on #106, #172, #311.
Use the `PHPCSUtils\Tokens\Collections::namespacedNameTokens()` method instead.

Follow up to #113, #202.
... and remove the remaining methods without logic (but which had a name change one way or the other).

Follow-up after #202, #311.

Includes updating the tests:
* Mostly remove method specific tests and move those to the `PropertyBasedTokenArraysTest`.
* For the "type" token arrays - update the order of the expected arrays.
…ted methods

Use the `T_FN` token directly instead.

Follow up to #347.
…ose()` method

Use the the `scope_opener`/`scope_closer` on the `T_DECLARE` token instead.

Follow up to #347.
@jrfnl jrfnl added this to the 1.0.0-RC1 milestone Dec 24, 2022
@jrfnl jrfnl enabled auto-merge December 24, 2022 01:32
@jrfnl jrfnl merged commit 2bf0fe8 into develop Dec 24, 2022
@jrfnl jrfnl deleted the feature/remove-deprecated-functionality branch December 24, 2022 01:40
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