Skip to content

Commit 39c4410

Browse files
committed
Tokenizer/PHP: bug fix
Interface and trait names should always be `T_STRING`.
1 parent fde816c commit 39c4410

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Tokenizers/PHP.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1899,6 +1899,8 @@ function return types. We want to keep the parenthesis map clean,
18991899
T_NULLSAFE_OBJECT_OPERATOR => true,
19001900
T_FUNCTION => true,
19011901
T_CLASS => true,
1902+
T_INTERFACE => true,
1903+
T_TRAIT => true,
19021904
T_EXTENDS => true,
19031905
T_IMPLEMENTS => true,
19041906
T_ATTRIBUTE => true,

0 commit comments

Comments
 (0)