From cf052cb46bb115e67694fdac9087e06d198fe6ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 21 Jul 2021 13:51:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Annotation/Inject.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Annotation/Inject.php b/Annotation/Inject.php index cd1b7355..fecdb903 100644 --- a/Annotation/Inject.php +++ b/Annotation/Inject.php @@ -65,6 +65,7 @@ use Snowflake\Snowflake; if ($method instanceof ReflectionProperty) { return $method; } + if (is_object($class)) $class = $class::class; $method = Snowflake::getDi()->getClassProperty($class, $method); if (!$method) { return false;