From b9b1936611c5f355f35cfb27507b545f1c737b4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 3 Mar 2022 18:00:49 +0800 Subject: [PATCH] modify plugin name --- Container.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Container.php b/Container.php index 6897b8e..a2d766d 100644 --- a/Container.php +++ b/Container.php @@ -359,7 +359,7 @@ class Container implements ContainerInterface $params[$key] = $parameter->getType(); } else { $type = $parameter->getType()->getName(); - if (is_string($type) && class_exists($type) || isset($this->_interfaces[$type])) { + if (class_exists($type) || interface_exists($type)) { $type = Kiri::getDi()->get($type); } $params[$key] = match ($parameter->getType()) {