Commit 8a54aaa
committed
PSR2.Classes.PropertyDeclaration: add T_STATIC to tokens list
In addition to scope modifiers, class properties currently have five
modifier tokens: T_ABSTRACT, T_FINAL, T_READONLY, T_STATIC and T_VAR.
The blame for this sniff does not explain why all but T_STATIC were
added to the set of modifier tokens in the search list. T_VAR has been
present since the file's creation and the other three were added one at
a time as those modifiers were added. To that extent, perhaps T_STATIC
was missed because the sniff itself uses getMemberProperties() and
code to perform explicit checks on those properties? I'm not sure.1 parent 44c338e commit 8a54aaa
File tree
1 file changed
+1
-0
lines changed- src/Standards/PSR2/Sniffs/Classes
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
0 commit comments