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
This looks like an error from strict mixed, because changing the level to 8 can suppress the error. Although, not sure this is an intended behavior or not.
Bug report
PHPStan does not correctly detect Objects implementing generic type
mixed
of an interface, as a super type of the interface.If I use any other type, say
array<string,string>
orlist<string>
, it works.Code snippet that reproduces the problem
https://phpstan.org/r/f317cce1-39d8-47a4-a397-5e8c79c69c96
Expected output
The code to pass validation as
Object<mixed>
is a super type ofInterface<mixed>
.The text was updated successfully, but these errors were encountered: