Skip to content

Commit 54b3a8d

Browse files
committed
Merge branch 'master' into 3.0
2 parents 2166fe8 + 068e113 commit 54b3a8d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Tokenizers/PHP.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,7 @@ protected function tokenize($string)
864864
&& $token[0] === T_STRING
865865
&& strtolower($token[1]) === 'trait'
866866
&& $tokens[($stackPtr - 1)][0] !== T_OBJECT_OPERATOR
867+
&& $tokens[($stackPtr - 1)][0] !== T_PAAMAYIM_NEKUDOTAYIM
867868
) {
868869
$finalTokens[$newStackPtr] = array(
869870
'content' => $token[1],

0 commit comments

Comments
 (0)