eee
This commit is contained in:
+1
-1
@@ -165,7 +165,7 @@ class Container implements ContainerInterface
|
||||
throw new ReflectionException('Class ' . $className . ' cannot be instantiated');
|
||||
}
|
||||
|
||||
if (($handler = $reflect->getConstructor()) !== null) {
|
||||
if (($handler = $reflect->getConstructor()) !== null && empty($construct)) {
|
||||
$construct = $this->getMethodParams($handler);
|
||||
}
|
||||
$newInstance = $reflect->newInstanceArgs($construct);
|
||||
|
||||
Reference in New Issue
Block a user