From 950d23131e5a4416c919375a10bb0f53b615c7aa Mon Sep 17 00:00:00 2001 From: whwyy Date: Mon, 18 Dec 2023 16:56:45 +0800 Subject: [PATCH] eee --- Container.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Container.php b/Container.php index cbc3c79..cd2b84f 100644 --- a/Container.php +++ b/Container.php @@ -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);