Skip to content

Commit

Permalink
Tokenizer/PHP: minor tweak
Browse files Browse the repository at this point in the history
Prevents some unnecessary token changes of the type `token 4 changed from T_STRING to T_STRING`.
  • Loading branch information
jrfnl committed Feb 13, 2021
1 parent 2da6904 commit d570825
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Tokenizers/PHP.php
Original file line number Diff line number Diff line change
Expand Up @@ -1469,6 +1469,7 @@ protected function tokenize($string)

if ($x < $numTokens
&& is_array($tokens[$x]) === true
&& $tokens[$x][0] !== T_STRING
&& $tokens[$x][0] !== T_NAME_QUALIFIED
) {
if (PHP_CODESNIFFER_VERBOSITY > 1) {
Expand Down

0 comments on commit d570825

Please sign in to comment.