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); }