Skip to content

Header as Interface #2595

Header as Interface

Header as Interface #2595

Triggered via pull request March 18, 2024 10:47
Status Failure
Total duration 32s
Artifacts

psalm.yml

on: pull_request
Matrix: Static Analysis by Psalm
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
ImplementedParamTypeMismatch: src/Aggregate/AggregateHeader.php#L30
src/Aggregate/AggregateHeader.php:30:52: ImplementedParamTypeMismatch: Argument 1 of Patchlevel\EventSourcing\Aggregate\AggregateHeader::fromJsonSerialize has wrong type 'array<array-key, mixed>', expecting 'Patchlevel\EventSourcing\Message\T' as defined by Patchlevel\EventSourcing\Message\Header::fromJsonSerialize (see https://psalm.dev/199)
MixedInferredReturnType: src/Aggregate/AggregateHeader.php#L30
src/Aggregate/AggregateHeader.php:30:60: MixedInferredReturnType: Could not verify return type 'Patchlevel\EventSourcing\Aggregate\AggregateHeader' for Patchlevel\EventSourcing\Aggregate\AggregateHeader::fromJsonSerialize (see https://psalm.dev/047)
PossiblyUndefinedVariable: src/Console/OutputStyle.php#L48
src/Console/OutputStyle.php:48:13: PossiblyUndefinedVariable: Possibly undefined variable $headers, first seen on line 48 (see https://psalm.dev/018)
MixedArrayAssignment: src/Console/OutputStyle.php#L48
src/Console/OutputStyle.php:48:13: MixedArrayAssignment: Cannot access array value on mixed variable $headers[string] (see https://psalm.dev/117)
PossiblyUndefinedVariable: src/Console/OutputStyle.php#L52
src/Console/OutputStyle.php:52:43: PossiblyUndefinedVariable: Possibly undefined variable $headers, first seen on line 48 (see https://psalm.dev/018)
MixedArgument: src/Console/OutputStyle.php#L52
src/Console/OutputStyle.php:52:43: MixedArgument: Argument 1 of array_keys cannot be mixed, expecting array<array-key, mixed> (see https://psalm.dev/030)
ImplementedParamTypeMismatch: src/Debug/Trace/TraceHeader.php#L27
src/Debug/Trace/TraceHeader.php:27:52: ImplementedParamTypeMismatch: Argument 1 of Patchlevel\EventSourcing\Debug\Trace\TraceHeader::fromJsonSerialize has wrong type 'array<array-key, mixed>', expecting 'Patchlevel\EventSourcing\Message\T' as defined by Patchlevel\EventSourcing\Message\Header::fromJsonSerialize (see https://psalm.dev/199)
UndefinedDocblockClass: src/Debug/Trace/TraceHeader.php#L29
src/Debug/Trace/TraceHeader.php:29:25: UndefinedDocblockClass: Docblock-defined class, interface or enum named Patchlevel\EventSourcing\Message\T does not exist (see https://psalm.dev/200)
MixedArgument: src/Debug/Trace/TraceHeader.php#L29
src/Debug/Trace/TraceHeader.php:29:25: MixedArgument: Argument 1 of Patchlevel\EventSourcing\Debug\Trace\TraceHeader::__construct cannot be mixed, expecting list<array{category: string, name: string}> (see https://psalm.dev/030)
UndefinedDocblockClass: src/Message/Header.php#L17
src/Message/Header.php:17:16: UndefinedDocblockClass: Docblock-defined class, interface or enum named Patchlevel\EventSourcing\Message\T does not exist (see https://psalm.dev/200)
Static Analysis by Psalm (locked, 8.3, ubuntu-latest)
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/.