Skip to content

Commit

Permalink
PHP 8.0 | Tokens: replicate the T_MATCH token
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Feb 22, 2021
1 parent 2ba5393 commit b48d202
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Util/Tokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@
define('T_NAME_RELATIVE', 'PHPCS_T_NAME_RELATIVE');
}

if (defined('T_MATCH') === false) {
define('T_MATCH', 'PHPCS_T_MATCH');
}

// Tokens used for parsing doc blocks.
define('T_DOC_COMMENT_STAR', 'PHPCS_T_DOC_COMMENT_STAR');
define('T_DOC_COMMENT_WHITESPACE', 'PHPCS_T_DOC_COMMENT_WHITESPACE');
Expand Down Expand Up @@ -189,6 +193,7 @@ final class Tokens
T_CATCH => 50,
T_FINALLY => 50,
T_SWITCH => 50,
T_MATCH => 50,

T_SELF => 25,
T_PARENT => 25,
Expand Down

0 comments on commit b48d202

Please sign in to comment.