File tree Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -1254,7 +1254,7 @@ protected function tokenize($string)
1254
1254
// Get the next non-whitespace token.
1255
1255
for ($ i = ($ stackPtr + 1 ); $ i < $ numTokens ; $ i ++) {
1256
1256
if (is_array ($ tokens [$ i ]) === false
1257
- || isset (Util \ Tokens::$ emptyTokens [$ tokens [$ i ][0 ]]) === false
1257
+ || isset (Tokens::$ emptyTokens [$ tokens [$ i ][0 ]]) === false
1258
1258
) {
1259
1259
break ;
1260
1260
}
@@ -1284,7 +1284,7 @@ protected function tokenize($string)
1284
1284
$ tokenType = $ tokens [$ i ];
1285
1285
}
1286
1286
1287
- if (isset (Util \ Tokens::$ emptyTokens [$ tokenType ]) === true ) {
1287
+ if (isset (Tokens::$ emptyTokens [$ tokenType ]) === true ) {
1288
1288
continue ;
1289
1289
}
1290
1290
@@ -1338,7 +1338,7 @@ protected function tokenize($string)
1338
1338
$ newStackPtr ++;
1339
1339
1340
1340
if (PHP_CODESNIFFER_VERBOSITY > 1 && $ type !== T_READONLY ) {
1341
- echo "\t\t * token $ stackPtr changed from $ type to T_READONLY ". PHP_EOL ;
1341
+ Common:: printStatusMessage ( " * token $ stackPtr changed from $ type to T_READONLY ", 2 ) ;
1342
1342
}
1343
1343
} else {
1344
1344
$ finalTokens [$ newStackPtr ] = [
@@ -1349,7 +1349,7 @@ protected function tokenize($string)
1349
1349
$ newStackPtr ++;
1350
1350
1351
1351
if (PHP_CODESNIFFER_VERBOSITY > 1 && $ type !== T_STRING ) {
1352
- echo "\t\t * token $ stackPtr changed from $ type to T_STRING ". PHP_EOL ;
1352
+ Common:: printStatusMessage ( " * token $ stackPtr changed from $ type to T_STRING ", 2 ) ;
1353
1353
}
1354
1354
}//end if
1355
1355
Original file line number Diff line number Diff line change @@ -88,8 +88,6 @@ namespace My\Readonly\Collection;
88
88
$ var = readonly ($ a , $ b );
89
89
/* testReadonlyAsNamespacedFunctionCall */
90
90
$ var = My \NS \readonly ($ a , $ b );
91
- /* testReadonlyAsNamespaceRelativeFunctionCall */
92
- $ var = namespace \ReadOnly ($ a , $ b );
93
91
/* testReadonlyAsMethodCall */
94
92
$ var = $ obj ->readonly ($ a , $ b );
95
93
/* testReadonlyAsNullsafeMethodCall */
Original file line number Diff line number Diff line change @@ -264,11 +264,7 @@ public function dataNotReadonly()
264
264
],
265
265
[
266
266
'/* testReadonlyAsNamespacedFunctionCall */ ' ,
267
- 'readonly ' ,
268
- ],
269
- [
270
- '/* testReadonlyAsNamespaceRelativeFunctionCall */ ' ,
271
- 'ReadOnly ' ,
267
+ 'My\NS\readonly ' ,
272
268
],
273
269
[
274
270
'/* testReadonlyAsMethodCall */ ' ,
You can’t perform that action at this time.
0 commit comments