Bug report
Phpstan claims there is an error - array key not present - since PHP 8.0, but runnable demo https://3v4l.org/1BGDs shows no difference.
I do not fully understand why phpstan behave so, so the issue title should be narrowed once the problem is better understood.
Code snippet that reproduces the problem
https://phpstan.org/r/a332d1e7-9ad5-4a70-b130-8b91cc7b7bae
Expected output
no phpstan error
the dumped type should be:
- array{error: int, name: string}
+array<int|string, array{error: int, name: string}>
Bug report
Phpstan claims there is an error - array key not present - since PHP 8.0, but runnable demo https://3v4l.org/1BGDs shows no difference.
I do not fully understand why phpstan behave so, so the issue title should be narrowed once the problem is better understood.
Code snippet that reproduces the problem
https://phpstan.org/r/a332d1e7-9ad5-4a70-b130-8b91cc7b7bae
Expected output
no phpstan error
the dumped type should be: