Commit d541631
committed
NamingConventions/PrefixAllGlobals: modify a test to use readonly anonymous classes
This commit modifies an existing test to use readonly anonymous classes to the `WordPress.NamingConventions.PrefixAllGlobals` tests. This is just to ensure that the part of the sniff code that checks for `T_ANON_CLASS` tokens works correctly with readonly anonymous class added in PHP 8.3.
The sniff was already handling readonly anonymous classes correctly, and no change to the sniff code is needed.1 parent 0620684 commit d541631
File tree
1 file changed
+1
-1
lines changed- WordPress/Tests/NamingConventions
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
0 commit comments