mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
injectable factory cleanup
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user