This commit is contained in:
2023-12-18 17:10:34 +08:00
parent 950d23131e
commit 048f49b27f
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -165,7 +165,7 @@ class Container implements ContainerInterface
throw new ReflectionException('Class ' . $className . ' cannot be instantiated');
}
if (($handler = $reflect->getConstructor()) !== null && empty($construct)) {
if (($handler = $reflect->getConstructor()) !== null) {
$construct = $this->getMethodParams($handler);
}
$newInstance = $reflect->newInstanceArgs($construct);