diff --git a/Annotation/Inject.php b/Annotation/Inject.php index d61115fe..656aa8df 100644 --- a/Annotation/Inject.php +++ b/Annotation/Inject.php @@ -35,7 +35,7 @@ use Snowflake\Snowflake; { $injectValue = $this->parseInjectValue(); if (!($method instanceof ReflectionProperty)) { - $class = new ReflectionProperty($class, $method); + $method = new ReflectionProperty($class, $method); } /** @var ReflectionProperty $class */