From 0081a30f22c7346fc99fe37b486795fcb3afcdfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 11 Jul 2025 15:25:06 +0800 Subject: [PATCH] eee --- Container.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);