https://psalm.dev/r/4a0d04f312
Psalm interprets list<Foo> as parent type array<array-key, mixed>.
If I just remove constructor from the child class, which is completely useless in this particular example, the error disappears:
https://psalm.dev/r/49da1a4776
https://psalm.dev/r/4a0d04f312 Psalm interprets
list<Foo>
asparent type array<array-key, mixed>
. If I just remove constructor from the child class, which is completely useless in this particular example, the error disappears: https://psalm.dev/r/49da1a4776