Skip to content

Use reflection for accessing child aggregates, add test case which covers private child aggregates #5092

Use reflection for accessing child aggregates, add test case which covers private child aggregates

Use reflection for accessing child aggregates, add test case which covers private child aggregates #5092

Triggered via pull request February 7, 2025 11:36
Status Failure
Total duration 37s
Artifacts

psalm.yml

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

Annotations

3 errors
MixedInferredReturnType: src/Aggregate/AggregateRootAttributeBehaviour.php#L81
src/Aggregate/AggregateRootAttributeBehaviour.php:81:77: MixedInferredReturnType: Could not verify return type 'Patchlevel\EventSourcing\Aggregate\ChildAggregate|null' for Patchlevel\EventSourcing\Aggregate\AggregateRootAttributeBehaviour::getChildAggregateByPropertyName (see https://psalm.dev/047)
PropertyNotSetInConstructor: tests/Integration/ChildAggregate/Views.php#L12
tests/Integration/ChildAggregate/Views.php:12:13: PropertyNotSetInConstructor: Property Patchlevel\EventSourcing\Tests\Integration\ChildAggregate\Views::$recorder is not defined in constructor of Patchlevel\EventSourcing\Tests\Integration\ChildAggregate\Views or in any private or final methods called in the constructor (see https://psalm.dev/074)
Static Analysis by Psalm (locked, 8.3, ubuntu-latest)
Process completed with exit code 2.