From ae11af9a7b7a2415ae141bd403ac42c6370aea7e Mon Sep 17 00:00:00 2001 From: xl Date: Thu, 16 Nov 2023 21:13:16 +0800 Subject: [PATCH] eee --- Container.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Container.php b/Container.php index 00bd66e..ea0176e 100644 --- a/Container.php +++ b/Container.php @@ -10,6 +10,7 @@ declare(strict_types=1); namespace Kiri\Di; +use Closure; use Exception; use Kiri\Di\Interface\InjectProxyInterface; use Kiri\Router\Interface\ValidatorInterface; @@ -264,7 +265,7 @@ class Container implements ContainerInterface */ public function getMethodParams(ReflectionMethod $parameters): array { - $className = $parameters->getDeclaringClass()->getName(); + $className = $parameters->getDeclaringClass()->getName(); $methodName = $parameters->getName(); if (!isset($this->_parameters[$className])) { return $this->_parameters[$className][$methodName] = $this->resolveMethodParams($parameters); @@ -277,11 +278,11 @@ class Container implements ContainerInterface /** - * @param \Closure $parameters + * @param Closure $parameters * @return array * @throws ReflectionException */ - public function getFunctionParams(\Closure $parameters): array + public function getFunctionParams(Closure $parameters): array { return $this->resolveMethodParams(new ReflectionFunction($parameters)); }