Skip to content

Commit

Permalink
Changed debug message (ref #2903)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Mar 16, 2020
1 parent cf81a2c commit caddfde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Tokenizers/PHP.php
Original file line number Diff line number Diff line change
Expand Up @@ -1946,9 +1946,9 @@ protected function processAdditional()
// If after all that, the extra tokens are not set, this is not an arrow function.
if (isset($this->tokens[$i]['scope_closer']) === false) {
if (PHP_CODESNIFFER_VERBOSITY > 1) {
$line = $this->tokens[$i]['line'];
$oldCode = $this->tokens[$i]['code'];
echo "\t\t* token $i on line $line changed from $oldCode to T_STRING: not an arrow function after all".PHP_EOL;
$line = $this->tokens[$i]['line'];
echo "\t=> token $i on line $line is not an arrow function".PHP_EOL;
echo "\t\t* token changed from T_FN to T_STRING".PHP_EOL;
}

$this->tokens[$i]['code'] = T_STRING;
Expand Down

0 comments on commit caddfde

Please sign in to comment.