Commit 9053d38
committed
Constants/RestrictedConstants: fix nonsensical comparison
The only token this sniff needs to check for (at this time) is the `T_STRING` token, which is used for both constant names as well as function names.
Any other token in the `Tokens::$functionNameTokens` token array will never match the subsequent contents comparison anyhow.1 parent 5fc6ba4 commit 9053d38
File tree
1 file changed
+1
-1
lines changed- WordPressVIPMinimum/Sniffs/Constants
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
0 commit comments