Skip to content

use aggregate name in message to decouple components #2227

use aggregate name in message to decouple components

use aggregate name in message to decouple components #2227

Triggered via pull request February 6, 2024 08:30
Status Failure
Total duration 29s
Artifacts

phpstan.yml

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

Annotations

3 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\{aggregateClass\?\: class\-string\<Patchlevel\\EventSourcing\\Aggregate\\AggregateRoot\>, 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#L235
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>.
Static Analysis by PHPStan (locked, 8.3, ubuntu-latest)
Process completed with exit code 1.
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/.