It seems like getOption() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
$this of type Sirius\Orm\Relation\HasAggregates is incompatible with the type Sirius\Orm\Relation\Relation expected by parameter $relation of Sirius\Orm\Relation\Aggregate::__construct().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
30
$agg = new Aggregate($name, /** @scrutinizer ignore-type */ $this, $options);