Skip to content

Update vimeo/psalm requirement from 4.30.0 to 5.23.0 #288

Update vimeo/psalm requirement from 4.30.0 to 5.23.0

Update vimeo/psalm requirement from 4.30.0 to 5.23.0 #288

Triggered via pull request March 11, 2024 16:37
Status Failure
Total duration 31s
Artifacts

static-analysis.yaml

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

Annotations

15 errors and 1 warning
Code style
Process completed with exit code 2.
PSalm
The job was canceled because "Code_style_make_cs-check" 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)
Validate composer.json
The job was canceled because "Code_style_make_cs-check" failed.
Type assertions
The job was canceled because "Code_style_make_cs-check" failed.
PHPStan
The job was canceled because "Code_style_make_cs-check" failed.
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/.