Skip to content

Update Message with headers #2218

Update Message with headers

Update Message with headers #2218

Triggered via pull request February 7, 2024 10:11
Status Failure
Total duration 1m 23s
Artifacts

psalm.yml

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

Annotations

5 errors and 1 warning
UndefinedMethod: src/Outbox/DoctrineOutboxStore.php#L114
src/Outbox/DoctrineOutboxStore.php:114:32: UndefinedMethod: Method Patchlevel\EventSourcing\EventBus\Message::customHeader does not exist (see https://psalm.dev/022)
InvalidArrayOffset: src/Store/DoctrineDbalStoreStream.php#L106
src/Store/DoctrineDbalStoreStream.php:106:66: InvalidArrayOffset: Cannot access value on variable $data using offset value of 'archived', expecting 'id', 'aggregate', 'aggregate_id', 'playhead', 'event', 'payload', 'recorded_on' or 'custom_headers' (see https://psalm.dev/115)
InvalidArrayOffset: src/Store/DoctrineDbalStoreStream.php#L107
src/Store/DoctrineDbalStoreStream.php:107:78: InvalidArrayOffset: Cannot access value on variable $data using offset value of 'new_stream_start', expecting 'id', 'aggregate', 'aggregate_id', 'playhead', 'event', 'payload', 'recorded_on' or 'custom_headers' (see https://psalm.dev/115)
ArgumentTypeCoercion: src/Store/DoctrineDbalStoreStream.php#L108
src/Store/DoctrineDbalStoreStream.php:108:31: ArgumentTypeCoercion: Argument 1 of Patchlevel\EventSourcing\EventBus\Message::withHeaders expects array{aggregateId?: string, aggregateName?: string, archived?: bool, newStreamStart?: bool, playhead?: int<1, max>, recordedOn?: DateTimeImmutable, ...<string, mixed>}, but parent type array<string, mixed> provided (see https://psalm.dev/193)
Static Analysis by Psalm (locked, 8.3, ubuntu-latest)
Process completed with exit code 2.
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/.