modify
This commit is contained in:
@@ -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()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user