mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-03 23:46:12 +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
|
* @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.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user