From a17c0f766172d47d93a13ba3444e10d1241a421d Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Mon, 3 May 2021 03:52:20 +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 656aa8df..42c5581b 100644 --- a/Annotation/Inject.php +++ b/Annotation/Inject.php @@ -39,7 +39,7 @@ use Snowflake\Snowflake; } /** @var ReflectionProperty $class */ - if ($class->isPrivate() || $class->isProtected()) { + if ($method->isPrivate() || $method->isProtected()) { $method = 'set' . ucfirst($class->getName()); if (!method_exists($class, $method)) { return false;