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;