Commit f9b2bdb
committed
AbstractArrayDeclarationSniff::getActualArrayKey(): minor simplification
The tokenization of fully qualified `true`/`false`/`null` has been changed for both PHPCS 3.x (as of 3.13.3) as well as PHPCS 4.0.
The new tokenization means we don't need to take these tokens being tokenized as `T_STRING` or `T_NAME_FULLY_QUALIFIED` into account anymore, as long as the minimum supported PHPCS version will be PHPCS 3.13.3 (which it will be since the merge of PR 698).
This commit removes the code which has now become redundant.
Ref:
* PHPCSStandards/PHP_CodeSniffer 1201
* PHPCSStandards/PHP_CodeSniffer 12061 parent 7ec8f55 commit f9b2bdb
1 file changed
+3
-19
lines changedLines changed: 3 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
| 481 | + | |
| 482 | + | |
494 | 483 | | |
495 | 484 | | |
496 | 485 | | |
497 | | - | |
498 | 486 | | |
499 | 487 | | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
| 488 | + | |
504 | 489 | | |
505 | | - | |
506 | 490 | | |
507 | 491 | | |
508 | 492 | | |
| |||
0 commit comments