Commit b71615e
fix(phpstan): simplify readonlyService and add Generated namespace exclusion
readonlyService: skip all classes that extend any parent class — the
suffix-based exclusion list was too narrow and caused false positives on
generated code, framework base classes, and other non-service parents.
Skip-on-extends is the simplest correct heuristic.
requireExplicitDIAttribute: exclude 'Generated' namespace so auto-generated
SDK code under src/Sdk/Generated/ is not flagged for missing DI attributes.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent c35aba7 commit b71615e
2 files changed
Lines changed: 2 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | 83 | | |
93 | 84 | | |
94 | 85 | | |
| |||
136 | 127 | | |
137 | 128 | | |
138 | 129 | | |
139 | | - | |
| 130 | + | |
140 | 131 | | |
141 | 132 | | |
142 | 133 | | |
| |||
176 | 167 | | |
177 | 168 | | |
178 | 169 | | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | 170 | | |
0 commit comments