This commit is contained in:
as2252258@163.com
2021-02-23 00:47:58 +08:00
parent c6629a96a9
commit d5c9b0fb4f
+1 -1
View File
@@ -172,7 +172,7 @@ class Container extends BaseObject
} }
$constructs = $reflection->getConstructor(); $constructs = $reflection->getConstructor();
if (empty($constructs) || count($constructs->getParameters()) < 1) { if (empty($constructs) || count($constructs->getParameters()) < 1) {
return [$reflection, []]; return [$reflection, $this->_constructs[$class] = []];
} }
foreach ($constructs->getParameters() as $key => $param) { foreach ($constructs->getParameters() as $key => $param) {
if ($param->isDefaultValueAvailable()) { if ($param->isDefaultValueAvailable()) {