Commit 051ef9f
committed
PSR2/PropertyDeclaration: update for properties with asymmetric visibility [1]
Per the FIG PSR-PER updates (next version), the "properties must have visibility declared" rule is also satisfied if only write visibility is declared.
> The `public` keyword MAY be omitted when using a set-visibility on a public-read property.
Includes updated test expectations (on the tests previously added in 871).
Refs:
* php-fig/per-coding-style 99
* php-fig/per-coding-style 1141 parent 2e9da03 commit 051ef9f
File tree
2 files changed
+2
-3
lines changed- src/Standards/PSR2
- Sniffs/Classes
- Tests/Classes
2 files changed
+2
-3
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | | - | |
67 | 66 | | |
68 | 67 | | |
69 | 68 | | |
| |||
0 commit comments