This commit is contained in:
2021-02-22 19:20:12 +08:00
parent ea4986b19d
commit 014d48756f
+1 -1
View File
@@ -167,7 +167,7 @@ class Container extends BaseObject
}; };
$constructs = $reflection->getConstructor(); $constructs = $reflection->getConstructor();
if (!($constructs instanceof \ReflectionMethod)) { if (!($constructs instanceof \ReflectionMethod)) {
return [$reflection, []]; return [$reflection, $this->_constructs[$class] = []];
} }
foreach ($constructs->getParameters() as $key => $param) { foreach ($constructs->getParameters() as $key => $param) {
$dependencies[] = $this->resolveDefaultValue($param); $dependencies[] = $this->resolveDefaultValue($param);