Skip to content

Commit

Permalink
Tokens\Collections: remove the deprecated $magicConstants property.
Browse files Browse the repository at this point in the history
Use the PHPCS native `Tokens::$magicConstants` property or the `PHPCSUtils\BackCompat\BCTokens::magicConstants()` method instead.

Follow up on #106, #172, #311.
  • Loading branch information
jrfnl committed Dec 24, 2022
1 parent 01e688a commit 23b5e34
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions PHPCSUtils/Tokens/Collections.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,27 +345,6 @@ final class Collections
\T_CLOSE_SQUARE_BRACKET => \T_CLOSE_SQUARE_BRACKET,
];

/**
* DEPRECATED: Tokens for the PHP magic constants.
*
* @since 1.0.0-alpha3
*
* @deprecated 1.0.0-alpha4 Use the {@see \PHP_CodeSniffer\Util\Tokens::$magicConstants} property
* or the {@see \PHPCSUtils\BackCompat\BCTokens::magicConstants()} method instead.
*
* @var array <int|string> => <int|string>
*/
public static $magicConstants = [
\T_CLASS_C => \T_CLASS_C,
\T_DIR => \T_DIR,
\T_FILE => \T_FILE,
\T_FUNC_C => \T_FUNC_C,
\T_LINE => \T_LINE,
\T_METHOD_C => \T_METHOD_C,
\T_NS_C => \T_NS_C,
\T_TRAIT_C => \T_TRAIT_C,
];

/**
* DEPRECATED: List of tokens which can end a namespace declaration statement.
*
Expand Down

0 comments on commit 23b5e34

Please sign in to comment.