mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-03 15:36:14 +00:00
Add return type AggregatorInterface
to getAggregator
method for improved type safety.
This commit is contained in:
parent
be437c8784
commit
f73994aaff
@ -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.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user