You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ThomasLandauer
changed the title
PHPDoc Array shape with nullable key not regocnized correctly
PHPDoc Array shape with nullable key not recognized correctly
Dec 16, 2023
Bug report
With a setup like this:
I'm getting:
But from my understanding,
$string
will always be a string, cause both array keys (foo
andbar
) are string (if present at all).This only happens when
checkImplicitMixed
is enabled; therefore I can't reproduce it in the playground.Code snippet that reproduces the problem
No response
Expected output
No error message.
Did PHPStan help you today? Did it make you happy in any way?
Sure! :-)
The text was updated successfully, but these errors were encountered: