Fixed correct class name in thrown exception

This commit is contained in:
Robin van der Vleuten 2016-01-15 15:32:28 +01:00
parent e489bba61d
commit c847feb5f3
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {