File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1692,7 +1692,7 @@ protected function processAdditional()
1692
1692
if ($ scopeCloser !== $ numTokens ) {
1693
1693
if (PHP_CODESNIFFER_VERBOSITY > 1 ) {
1694
1694
$ line = $ this ->tokens [$ i ]['line ' ];
1695
- echo "\t* token $ i on line $ line processed as arrow function " .PHP_EOL ;
1695
+ echo "\t=> token $ i on line $ line processed as arrow function " .PHP_EOL ;
1696
1696
}
1697
1697
1698
1698
$ this ->tokens [$ i ]['code ' ] = T_FN ;
@@ -1718,6 +1718,11 @@ protected function processAdditional()
1718
1718
$ closer = $ this ->tokens [$ i ]['parenthesis_closer ' ];
1719
1719
$ this ->tokens [$ opener ]['parenthesis_owner ' ] = $ i ;
1720
1720
$ this ->tokens [$ closer ]['parenthesis_owner ' ] = $ i ;
1721
+
1722
+ if (PHP_CODESNIFFER_VERBOSITY > 1 ) {
1723
+ $ line = $ this ->tokens [$ arrow ]['line ' ];
1724
+ echo "\t\t* token $ arrow on line $ line changed from T_DOUBLE_ARROW to T_FN_ARROW " .PHP_EOL ;
1725
+ }
1721
1726
}//end if
1722
1727
}//end if
1723
1728
}//end if
You can’t perform that action at this time.
0 commit comments