Commit 0946cb1
committed
Tokenizer/PHP: let
Implementation of the proposal outlined in issue 3115 / 22.
1. Removes the Tokenizer/PHP code which made an exception for `instanceof static`.
2. Adds an exception for `instanceof static` to the `Squiz.WhiteSpace.ScopeKeywordSpacing` sniff for which the tokenizer code was originally put in place.
The tests for all other sniffs still pass.
I've had a quick look through the other sniffs which refer to the `T_STATIC` token, but didn't see any which should be impacted by this change.
Includes one minor test update for a sniff just to be safe.
Fixes squizlabs/PHP_CodeSniffer 3115
Fixes 22
Closes 3121T_STATIC be T_STATIC
1 parent 268d6ad commit 0946cb1
File tree
4 files changed
+3
-20
lines changed- src
- Standards/Squiz
- Sniffs/WhiteSpace
- Tests/WhiteSpace
- Tokenizers
4 files changed
+3
-20
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
| 265 | + | |
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3348 | 3348 | | |
3349 | 3349 | | |
3350 | 3350 | | |
3351 | | - | |
3352 | | - | |
3353 | | - | |
3354 | | - | |
3355 | | - | |
3356 | | - | |
3357 | | - | |
3358 | | - | |
3359 | | - | |
3360 | | - | |
3361 | | - | |
3362 | | - | |
3363 | | - | |
3364 | | - | |
3365 | | - | |
3366 | | - | |
3367 | | - | |
3368 | | - | |
3369 | 3351 | | |
3370 | 3352 | | |
3371 | 3353 | | |
| |||
0 commit comments