Use reflection for accessing child aggregates, add test case which covers private child aggregates #5092
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.
|