Open Tigrov opened 1 month ago
When trying to define array type with known key-values and unknown using ... or more specific ...<string, mixed>
...
...<string, mixed>
/** * @psalm-type Info = array{ * key?: string|null, * ...<string, mixed> * } */
It shows an error MixedArgumentTypeCoercion with description that known key-values have also mixed values, although it is not explicitly defined in the type.
MixedArgumentTypeCoercion
mixed
https://psalm.dev/r/3bc76124cc
I found these snippets:
When trying to define array type with known key-values and unknown using
...
or more specific...<string, mixed>
It shows an error
MixedArgumentTypeCoercion
with description that known key-values have alsomixed
values, although it is not explicitly defined in the type.https://psalm.dev/r/3bc76124cc