Detect more possibly-impossible offset#4164
Conversation
|
I feel like the error could always be reported on level 7+. The difference is that the |
35af5a4 to
f4b6dbd
Compare
c290ea1 to
2417411
Compare
|
This pull request has been marked as ready for review. |
2417411 to
0a8a1e2
Compare
0a8a1e2 to
accabee
Compare
ondrejmirtes
left a comment
There was a problem hiding this comment.
I'm still not so sure about this, the impact seems high...
| "ignorable": true | ||
| }, | ||
| { | ||
| "message": "Offset int|object might not exist on array{baz: 21}|array{foo: 17, bar: 19}.", |
There was a problem hiding this comment.
This looks wrong for array{foo: 17, bar: 19}|array{baz: 21}. int|object never exists on these arrays.
There was a problem hiding this comment.
Indeed, I think this is because of #4272 which need to be fix/merged first then.
accabee to
0536ac1
Compare
|
Since they are kinda related, #4166 might be better to merge first (?) |
fb1c818 to
ccea22a
Compare
|
Thank you. |
Closes phpstan/phpstan#1061