From 99b496304a8e9ec555ced0028ad35cd45af5c0ee Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Mon, 3 May 2021 03:51:13 +0800 Subject: [PATCH] modify --- Annotation/Inject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Annotation/Inject.php b/Annotation/Inject.php index cad8e098..d61115fe 100644 --- a/Annotation/Inject.php +++ b/Annotation/Inject.php @@ -34,7 +34,7 @@ use Snowflake\Snowflake; public function execute(mixed $class, mixed $method = null): mixed { $injectValue = $this->parseInjectValue(); - if (!($class instanceof ReflectionProperty)) { + if (!($method instanceof ReflectionProperty)) { $class = new ReflectionProperty($class, $method); }