Bug report
I had an offset reported as not exisiting right after assigning a value to that offset, but only in very specific circumstances.
See code snippet below. I added comments to show when the error does or doesn't occur
Code snippet that reproduces the problem
https://phpstan.org/r/c7ca6a8c-387d-40a2-b18a-360e473e2783
Expected output
No errors
Bug report
I had an offset reported as not exisiting right after assigning a value to that offset, but only in very specific circumstances.
See code snippet below. I added comments to show when the error does or doesn't occur
Code snippet that reproduces the problem
https://phpstan.org/r/c7ca6a8c-387d-40a2-b18a-360e473e2783
Expected output
No errors