diff --git a/System/Di/Container.php b/System/Di/Container.php index 656ec865..19b5616d 100644 --- a/System/Di/Container.php +++ b/System/Di/Container.php @@ -167,7 +167,7 @@ class Container extends BaseObject }; $constructs = $reflection->getConstructor(); if (!($constructs instanceof \ReflectionMethod)) { - return [$reflection, []]; + return [$reflection, $this->_constructs[$class] = []]; } foreach ($constructs->getParameters() as $key => $param) { $dependencies[] = $this->resolveDefaultValue($param);