diff --git a/src/Tokenizers/PHP.php b/src/Tokenizers/PHP.php index f7065d0bfa..74871d3b30 100644 --- a/src/Tokenizers/PHP.php +++ b/src/Tokenizers/PHP.php @@ -1945,6 +1945,12 @@ 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; + } + $this->tokens[$i]['code'] = T_STRING; $this->tokens[$i]['type'] = 'T_STRING'; }