Skip to content

Upgrade array typehints with literal keys to keyed arrays #12532

Upgrade array typehints with literal keys to keyed arrays

Upgrade array typehints with literal keys to keyed arrays #12532

Triggered via pull request January 18, 2024 15:37
Status Failure
Total duration 1m 10s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

shepherd.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors
InvalidArgument: 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)
RedundantCast: tests/TypeParseTest.php#L149
tests/TypeParseTest.php:149:63: RedundantCast: Redundant cast to string (see https://psalm.dev/262)
build
Process completed with exit code 2.