Fix resolving mixed + array
rebased version of https://github.com/phpstan/phpstan-src/pull/1445 reworked to use isSuperTypeOf checks (feedback from ondrey).
#1445 seemed abandoned therefore I figured I could push it over the finishing line
Fixes https://github.com/phpstan/phpstan/issues/7492
//cc @rvanvelzen
@herndlm after your recent changes on the mixed type I see new/no longer reported errors after rebase.
would be great if I could get your opinion on these.
@herndlm after your recent changes on the mixed type I see new/no longer reported errors after rebase.
would be great if I could get your opinion on these.
I think I see failures related to https://github.com/phpstan/phpstan-src/pull/1641, so maybe left or right *never* types are incorrectly handled?
Thank you!