From 12fbee8597b167d7edd7ffad2c19681f5ccbb64a Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Fri, 16 Apr 2021 14:25:58 +0300 Subject: [PATCH] injectable factory cleanup --- application/Espo/Core/InjectableFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;