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
In the code below the type T should not be inferred from the callable param, but from the first arg. Callable params act as an upper bound on the possible type.
Bug report
In the code below the type
T
should not be inferred from the callable param, but from the first arg. Callable params act as an upper bound on the possible type.Code snippet that reproduces the problem
https://phpstan.org/r/a30bb64f-9723-460b-8d09-33efb3afdc40
Expected output
No issue
Actual output
Cannot call method foo() on C|null
The text was updated successfully, but these errors were encountered: