diff --git a/System/Di/Container.php b/System/Di/Container.php index d2bcb634..f626a467 100644 --- a/System/Di/Container.php +++ b/System/Di/Container.php @@ -172,7 +172,7 @@ class Container extends BaseObject } $constructs = $reflection->getConstructor(); if (empty($constructs) || count($constructs->getParameters()) < 1) { - return [$reflection, []]; + return [$reflection, $this->_constructs[$class] = []]; } foreach ($constructs->getParameters() as $key => $param) { if ($param->isDefaultValueAvailable()) {