diff --git a/Container.php b/Container.php index f2db01c..61910b3 100644 --- a/Container.php +++ b/Container.php @@ -314,11 +314,7 @@ class Container implements ContainerInterface if (!($reflectMethod instanceof ReflectionMethod)) { 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])) { - return $this->setParameters($className, $method, $this->resolveParameters($reflectMethod)); - } - return $this->_parameters[$className][$method]; + return $this->setParameters($className, $method, $this->resolveParameters($reflectMethod)); }