diff --git a/Container.php b/Container.php index b48f355..2f46419 100644 --- a/Container.php +++ b/Container.php @@ -211,7 +211,7 @@ class Container implements ContainerInterface throw new ReflectionException('Class ' . $reflect->getName() . ' cannot be instantiated'); } - if (($handler = $reflect->getConstructor()) !== null) { + if (empty($construct) && ($handler = $reflect->getConstructor()) !== null) { $construct = $this->getMethodParams($handler); } $newInstance = $reflect->newInstanceArgs($construct);