Commit 793ff43
committed
NamingConventions/ValidPostTypeSlug: check token via code, not type
The `'type'` index in the token array should generally only be used for PHPCS cross-version compatibility, where the token constant we are looking for may not be defined in all supported PHPCS versions.
That's not the case for these.1 parent d2421de commit 793ff43
File tree
1 file changed
+2
-2
lines changed- WordPress/Sniffs/NamingConventions
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
176 | | - | |
| 175 | + | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
0 commit comments