Open mr-feek opened 3 years ago
I found these snippets:
Psalm uses your default value to infer the type: https://psalm.dev/r/7926ff16a1
I found these snippets:
@weirdan would you consider this as a bug or as expected?
I'd say it's consistent, but just not very useful in this case. As long as array<empty,empty>
is a valid type.
https://psalm.dev/r/565d4d6d18
Expected functionality would be to treat the template types as mixed.
Adding
@var
annotation makes the error disappearhttps://psalm.dev/r/455d3d9fe6