# Bug report PHPStan 1.6.2 If a variable is narrowed from `mixed` to a shaped array, PHPStan fails to compare it properly. https://phpstan.org/r/8273475b-6e96-4e2d-baa0-7a0fea921fc0 The same code doesn't yield any errors if I just replace `mixed` with `array`: https://phpstan.org/r/98b21779-1265-465e-ab65-0967bf6feb8f ### Code snippet that reproduces the problem https://phpstan.org/r/8273475b-6e96-4e2d-baa0-7a0fea921fc0 ### Expected output No errors. ### Did PHPStan help you today? Did it make you happy in any way? :heart: :heart: :heart:
Bug report
PHPStan 1.6.2
If a variable is narrowed from
mixedto a shaped array, PHPStan fails to compare it properly.https://phpstan.org/r/8273475b-6e96-4e2d-baa0-7a0fea921fc0
The same code doesn't yield any errors if I just replace
mixedwitharray:https://phpstan.org/r/98b21779-1265-465e-ab65-0967bf6feb8f
Code snippet that reproduces the problem
https://phpstan.org/r/8273475b-6e96-4e2d-baa0-7a0fea921fc0
Expected output
No errors.
Did PHPStan help you today? Did it make you happy in any way?
❤️ ❤️ ❤️