Do not report non existent offset when it s an array creation#4204
Do not report non existent offset when it s an array creation#4204ondrejmirtes merged 4 commits intophpstan:2.1.xfrom
Conversation
|
This pull request has been marked as ready for review. |
|
I feel like we'd need a similar fix for Scope manipulation in NodeScopeResolver. There this situation is detected by Try adding |
f813495 to
ef9fa11
Compare
Added. We get, |
|
We should get rid of |
|
And regarding:
That's perfect! 👍 |
I get now |
|
Look at the issue bot, this also fixes phpstan/phpstan#7286 (your issue) and also maybe phpstan/phpstan#3803. Please add regression tests for them. |
e14dffb to
0e7855c
Compare
Indeed, both are fixed. Nice, I added two non regressions tests then. |
0e7855c to
aca5e56
Compare
|
Thank you. |
Closes phpstan/phpstan#12447
I solved what you asked in phpstan/phpstan#12447 (comment)
Also
Closes phpstan/phpstan#7286
Closes phpstan/phpstan#3803