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
When an interface method declares a return type array{field: string, extra?: string}, an implementation should be allowed to declare a narrower return type array{field: string}.
Bug report
When an interface method declares a return type
array{field: string, extra?: string}
, an implementation should be allowed to declare a narrower return typearray{field: string}
.Code snippet that reproduces the problem
https://phpstan.org/r/4e9cbfbf-fca7-48af-85f2-6c3bcc9f4311
Expected output
No error.
I can have a look at it myself, but likely not before the weekend or next week.
Did PHPStan help you today? Did it make you happy in any way?
No response
The text was updated successfully, but these errors were encountered: