injectable factory cleanup

This commit is contained in:
Yuri Kuznetsov
2021-04-16 14:25:58 +03:00
parent 856621a8a7
commit 12fbee8597

View File

@@ -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;