Add return type AggregatorInterface to getAggregator method for improved type safety.

This commit is contained in:
Julien Fastré 2025-07-02 09:59:42 +02:00
parent be437c8784
commit f73994aaff
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -148,7 +148,7 @@ class ExportManager
* *
* @throws \RuntimeException if the aggregator is not known * @throws \RuntimeException if the aggregator is not known
*/ */
public function getAggregator($alias) public function getAggregator($alias): AggregatorInterface
{ {
if (null === $aggregator = $this->aggregators[$alias] ?? null) { if (null === $aggregator = $this->aggregators[$alias] ?? null) {
throw new \RuntimeException("The aggregator with alias {$alias} is not known."); throw new \RuntimeException("The aggregator with alias {$alias} is not known.");