diff --git a/application/Espo/Core/InjectableFactory.php b/application/Espo/Core/InjectableFactory.php index f0eedcb304..fcd561c981 100644 --- a/application/Espo/Core/InjectableFactory.php +++ b/application/Espo/Core/InjectableFactory.php @@ -211,14 +211,14 @@ class InjectableFactory ); } - private function getCallbackInjectionList(callable $callback, ?array $with = null): array + private function getCallbackInjectionList(callable $callback): array { $injectionList = []; $function = new ReflectionFunction($callback); foreach ($function->getParameters() as $param) { - $injectionList[] = $this->getMethodParamInjection(null, $param, $with); + $injectionList[] = $this->getMethodParamInjection(null, $param); } return $injectionList;