From c96db92b5b04dbfe5cfbeae8909778ffc0fcbcd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 16 Jun 2022 18:53:40 +0800 Subject: [PATCH] modify plugin name --- Container.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Container.php b/Container.php index 5620ee4..f2db01c 100644 --- a/Container.php +++ b/Container.php @@ -315,7 +315,7 @@ class Container implements ContainerInterface throw new ReflectionException("Class does not have a function $className::$method"); } $className = $reflectMethod->getDeclaringClass()->getName(); - if (!isset($this->_parameters[$className]) || isset($this->_parameters[$className][$method])) { + if (!isset($this->_parameters[$className]) || !isset($this->_parameters[$className][$method])) { return $this->setParameters($className, $method, $this->resolveParameters($reflectMethod)); } return $this->_parameters[$className][$method];