Commit 855a825
Revert class-string static call to ErrorType per review
Keep ErrorType for `$class::foo()` on non-generic class-string,
consistent with how `object::foo()` reports an error.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 1bf4599 commit 855a825
File tree
2 files changed
+4
-12
lines changed- src/Analyser/ExprHandler
- tests/PHPStan/Analyser/nsrt
2 files changed
+4
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
295 | 294 | | |
296 | 295 | | |
297 | 296 | | |
298 | | - | |
299 | | - | |
300 | | - | |
| 297 | + | |
301 | 298 | | |
302 | 299 | | |
303 | | - | |
304 | 300 | | |
305 | 301 | | |
306 | 302 | | |
307 | | - | |
| 303 | + | |
308 | 304 | | |
309 | 305 | | |
310 | 306 | | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
| 307 | + | |
316 | 308 | | |
317 | 309 | | |
318 | 310 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
0 commit comments