Skip to content

Update vimeo/psalm requirement from 4.30.0 to 5.20.0 #273

Update vimeo/psalm requirement from 4.30.0 to 5.20.0

Update vimeo/psalm requirement from 4.30.0 to 5.20.0 #273

Triggered via pull request January 18, 2024 16:48
Status Failure
Total duration 27s
Artifacts

static-analysis.yaml

on: pull_request
Matrix: job
Fit to window
Zoom out
Zoom in

Annotations

14 errors
InvalidArgument: tests/type-assertions/Internal/Combinators/ArrayPropsDecoderTest.php#L16
tests/type-assertions/Internal/Combinators/ArrayPropsDecoderTest.php:16:35: InvalidArgument: Argument 1 of Facile\PhpCodec\Decoders::arrayProps expects non-empty-array<array-key, Facile\PhpCodec\Decoder<mixed, mixed>>, but array{a: Facile\PhpCodec\Decoder<mixed, string>, b: Facile\PhpCodec\Decoder<mixed, int>} provided (see https://psalm.dev/004)
Type assertions
Process completed with exit code 2.
PHPStan
The job was canceled because "Type_assertions_make_type" failed.
PSalm
The job was canceled because "Type_assertions_make_type" failed.
InvalidArrayOffset: src/Decoders.php#L145
src/Decoders.php:145:33: InvalidArrayOffset: Cannot access value on variable $args using a int<-2, max> offset, expecting int<0, max> (see https://psalm.dev/115)
MixedArgument: src/Decoders.php#L145
src/Decoders.php:145:33: MixedArgument: Argument 1 of Facile\PhpCodec\Internal\Combinators\UnionDecoder::__construct cannot be mixed, expecting Facile\PhpCodec\Decoder<mixed, mixed> (see https://psalm.dev/030)
InvalidArrayOffset: src/Decoders.php#L145
src/Decoders.php:145:51: InvalidArrayOffset: Cannot access value on variable $args using a int<-1, max> offset, expecting int<0, max> (see https://psalm.dev/115)
MixedArgument: src/Decoders.php#L145
src/Decoders.php:145:51: MixedArgument: Argument 2 of Facile\PhpCodec\Internal\Combinators\UnionDecoder::__construct cannot be mixed, expecting Facile\PhpCodec\Decoder<mixed, mixed> (see https://psalm.dev/030)
NoValue: src/Internal/Combinators/ArrayPropsDecoder.php#L57
src/Internal/Combinators/ArrayPropsDecoder.php:57:9: NoValue: All possible types for this return were invalidated - This may be dead code (see https://psalm.dev/179)
DocblockTypeContradiction: src/Internal/Combinators/LiteralDecoder.php#L43
src/Internal/Combinators/LiteralDecoder.php:43:13: DocblockTypeContradiction: I:Facile\PhpCodec\Internal\Combinators\LiteralDecoder as mixed does not contain T:Facile\PhpCodec\Internal\Combinators\LiteralDecoder as bool|int|string (see https://psalm.dev/155)
ArgumentTypeCoercion: src/Internal/Useful/RegexDecoder.php#L30
src/Internal/Useful/RegexDecoder.php:30:25: ArgumentTypeCoercion: Argument 1 of preg_match expects non-empty-string, but parent type string provided (see https://psalm.dev/193)
ArgumentTypeCoercion: src/Internal/Useful/StringMatchingRegexDecoder.php#L33
src/Internal/Useful/StringMatchingRegexDecoder.php:33:25: ArgumentTypeCoercion: Argument 1 of preg_match expects non-empty-string, but parent type string provided (see https://psalm.dev/193)
RiskyTruthyFalsyComparison: src/Reporters/PathReporter.php#L40
src/Reporters/PathReporter.php:40:16: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
MissingTemplateParam: src/Validation/Context.php#L9
src/Validation/Context.php:9:32: MissingTemplateParam: Facile\PhpCodec\Validation\Context has missing template params when extending Iterator, expecting 2 (see https://psalm.dev/182)