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

This commit is contained in:
2025-07-02 09:59:42 +02:00
parent be437c8784
commit f73994aaff

View File

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