Skip to content

Update Message with headers #2240

Update Message with headers

Update Message with headers #2240

Triggered via pull request February 6, 2024 16:59
Status Failure
Total duration 35s
Artifacts

phpstan.yml

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

Annotations

10 errors and 1 warning
Static Analysis by PHPStan (locked, 8.3, ubuntu-latest): src/EventBus/Message.php#L1
Ignored error pattern #^Method Patchlevel\\EventSourcing\\EventBus\\Message\:\:headers\(\) should return array\{aggregateName\?\: string, aggregateId\?\: string, playhead\?\: int\<1, max\>, recordedOn\?\: DateTimeImmutable, newStreamStart\?\: bool, archived\?\: bool\} but returns non\-empty\-array\<string, mixed\>\.$# in path /home/runner/work/event-sourcing/event-sourcing/src/EventBus/Message.php was not matched in reported errors.
Static Analysis by PHPStan (locked, 8.3, ubuntu-latest): src/EventBus/Message.php#L34
PHPDoc tag @var for property Patchlevel\EventSourcing\EventBus\Message::$headers with type mixed is not subtype of native type array.
Static Analysis by PHPStan (locked, 8.3, ubuntu-latest): src/EventBus/Message.php#L34
Property Patchlevel\EventSourcing\EventBus\Message::$headers type has no value type specified in iterable type array.
Static Analysis by PHPStan (locked, 8.3, ubuntu-latest): src/EventBus/Message.php#L55
Method Patchlevel\EventSourcing\EventBus\Message::createWithHeaders() has parameter $headers with no value type specified in iterable type array.
Static Analysis by PHPStan (locked, 8.3, ubuntu-latest): src/EventBus/Message.php#L55
PHPDoc tag @param for parameter $headers with type mixed is not subtype of native type array.
Static Analysis by PHPStan (locked, 8.3, ubuntu-latest): src/EventBus/Message.php#L190
Method Patchlevel\EventSourcing\EventBus\Message::headers() return type has no value type specified in iterable type array.
Static Analysis by PHPStan (locked, 8.3, ubuntu-latest): src/EventBus/Message.php#L190
PHPDoc tag @return with type mixed is not subtype of native type array.
Static Analysis by PHPStan (locked, 8.3, ubuntu-latest): src/EventBus/Message.php#L196
Method Patchlevel\EventSourcing\EventBus\Message::withHeaders() has parameter $headers with no value type specified in iterable type array.
Static Analysis by PHPStan (locked, 8.3, ubuntu-latest): src/EventBus/Message.php#L196
PHPDoc tag @param for parameter $headers with type mixed is not subtype of native type array.
Static Analysis by PHPStan (locked, 8.3, ubuntu-latest): src/Store/DoctrineDbalStoreStream.php#L106
Offset 'archived' does not exist on array{id: int<1, max>, aggregate: string, aggregate_id: string, playhead: int|string, event: string, payload: string, recorded_on: string, custom_headers: string}.
Static Analysis by PHPStan (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/.