We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2914011 + ec17d53 commit cf81a2cCopy full SHA for cf81a2c
src/Tokenizers/PHP.php
@@ -1945,6 +1945,12 @@ protected function processAdditional()
1945
1946
// If after all that, the extra tokens are not set, this is not an arrow function.
1947
if (isset($this->tokens[$i]['scope_closer']) === false) {
1948
+ if (PHP_CODESNIFFER_VERBOSITY > 1) {
1949
+ $line = $this->tokens[$i]['line'];
1950
+ $oldCode = $this->tokens[$i]['code'];
1951
+ echo "\t\t* token $i on line $line changed from $oldCode to T_STRING: not an arrow function after all".PHP_EOL;
1952
+ }
1953
+
1954
$this->tokens[$i]['code'] = T_STRING;
1955
$this->tokens[$i]['type'] = 'T_STRING';
1956
}
0 commit comments