@var with type Closure(): list<HelloWorld> is not subtype of native type Closure(): array
#12458
Labels
Milestone
Bug report
See snippet, I believe it is a subtype.
Code snippet that reproduces the problem
https://phpstan.org/r/2c5d933a-99ae-475f-a3ed-4130ef176df9
Expected output
No error.
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: