Upgrade array typehints with literal keys to keyed arrays #12531
Annotations
3 errors
Run Psalm:
src/Psalm/Internal/Type/TypeParser.php#L730
src/Psalm/Internal/Type/TypeParser.php:730:21: InvalidArgument: Argument 1 of Psalm\Type\Union::setTypes expects non-empty-array<array-key, Psalm\Type\Atomic>, but list{Psalm\Type\Atomic|Psalm\Type\Union, ...<Psalm\Type\Atomic>} provided (see https://psalm.dev/004)
|
Run Psalm:
tests/TypeParseTest.php#L149
tests/TypeParseTest.php:149:63: RedundantCast: Redundant cast to string (see https://psalm.dev/262)
|
Run Psalm
Process completed with exit code 2.
|
The logs for this run have expired and are no longer available.
Loading