Bug report
When an array key is 'foo'|'bar' the array shape is too much simplified
Code snippet that reproduces the problem
https://phpstan.org/r/42797189-cf51-44e5-a0f7-fef18ce9545a
Expected output
Best would be
array{id: null, bar: string}|array{id: null, foo: string}
but I would expect at least
array{id: null, bar?: string, foo?: string}
Is something something possible without impacting (too much ?) the performance ?
Did PHPStan help you today? Did it make you happy in any way?
Sure, I'm adding phpdoc for arrays and it detects so much