Skip to content

Commit 9eff02b

Browse files
committed
Generic/[Lower|Upper]CaseConstant: minor clean up
The PHP 8.0 namespaced name tokens were already added to the sniff in PR 119 (to make the merge with the old 4.0 branch easier). This commit now removes the `T_NS_SEPARATOR` and `T_NAMESPACE` tokens which should no longer need to be taken into account what with the change in the namespaced names tokenization in PHPCS 4.0. The change is already covered by pre-existing tests.
1 parent 3e82e66 commit 9eff02b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Standards/Generic/Sniffs/PHP/LowerCaseConstantSniff.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ class LowerCaseConstantSniff implements Sniff
4343
T_NAME_QUALIFIED => T_NAME_QUALIFIED,
4444
T_NAME_FULLY_QUALIFIED => T_NAME_FULLY_QUALIFIED,
4545
T_NAME_RELATIVE => T_NAME_RELATIVE,
46-
T_NS_SEPARATOR => T_NS_SEPARATOR,
47-
T_NAMESPACE => T_NAMESPACE,
4846
T_TYPE_UNION => T_TYPE_UNION,
4947
T_TYPE_INTERSECTION => T_TYPE_INTERSECTION,
5048
T_TYPE_OPEN_PARENTHESIS => T_TYPE_OPEN_PARENTHESIS,

0 commit comments

Comments
 (0)