Skip to content

Commit a0145ae

Browse files
committed
PHP 8.0 | Tokens: add new T_TYPE_UNION token
... which will indicate the `|` character in PHP 8.0 union types.
1 parent c873d38 commit a0145ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Util/Tokens.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
define('T_ZSR', 'PHPCS_T_ZSR');
7676
define('T_ZSR_EQUAL', 'PHPCS_T_ZSR_EQUAL');
7777
define('T_FN_ARROW', 'T_FN_ARROW');
78+
define('T_TYPE_UNION', 'T_TYPE_UNION');
7879

7980
// Some PHP 5.5 tokens, replicated for lower versions.
8081
if (defined('T_FINALLY') === false) {

0 commit comments

Comments
 (0)