Skip to content

Commit 068e113

Browse files
committed
Further fix (5.3 only) for #1218
1 parent 531a731 commit 068e113

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CodeSniffer/Tokenizers/PHP.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,7 @@ public function tokenizeString($string, $eolChar='\n')
732732
&& $token[0] === T_STRING
733733
&& strtolower($token[1]) === 'trait'
734734
&& $tokens[($stackPtr - 1)][0] !== T_OBJECT_OPERATOR
735+
&& $tokens[($stackPtr - 1)][0] !== T_PAAMAYIM_NEKUDOTAYIM
735736
) {
736737
$finalTokens[$newStackPtr] = array(
737738
'content' => $token[1],

0 commit comments

Comments
 (0)