Fixed correct class name in thrown exception
This commit is contained in:
parent
e489bba61d
commit
c847feb5f3
@ -120,7 +120,7 @@ abstract class AnnotationClassLoader implements LoaderInterface
|
||||
|
||||
$class = new \ReflectionClass($class);
|
||||
if ($class->isAbstract()) {
|
||||
throw new \InvalidArgumentException(sprintf('Annotations from class "%s" cannot be read as it is abstract.', $class));
|
||||
throw new \InvalidArgumentException(sprintf('Annotations from class "%s" cannot be read as it is abstract.', $class->getName()));
|
||||
}
|
||||
|
||||
if ($annot = $this->reader->getClassAnnotation($class, $this->routeAnnotationClass)) {
|
||||
|
Reference in New Issue
Block a user