Skip to content

Update vimeo/psalm requirement from 4.30.0 to 5.22.1 #284

Update vimeo/psalm requirement from 4.30.0 to 5.22.1

Update vimeo/psalm requirement from 4.30.0 to 5.22.1 #284

Triggered via pull request February 16, 2024 16:22
Status Failure
Total duration 30s
Artifacts

static-analysis.yaml

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

Annotations

15 errors and 5 warnings
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.
Code style
Process completed with exit code 2.
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)
PHPStan
The operation was canceled.
Validate composer.json
The operation was canceled.
Type assertions
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Code style
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PSalm
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHPStan
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Validate composer.json
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.