8000 Fixed correct class name in thrown exception · symfony/symfony@c847feb · GitHub
[go: up one dir, main page]

Skip to content

Commit c847feb

Browse files
Fixed correct class name in thrown exception
1 parent e489bba commit c847feb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Routing/Loader/AnnotationClassLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function load($class, $type = null)
120120

121121
$class = new \ReflectionClass($class);
122122
if ($class->isAbstract()) {
123-
throw new \InvalidArgumentException(sprintf('Annotations from class "%s" cannot be read as it is abstract.', $class));
123+
throw new \InvalidArgumentException(sprintf('Annotations from class "%s" cannot be read as it is abstract.', $class->getName()));
124124
}
125125

126126
if ($annot = $this->reader->getClassAnnotation($class, $this->routeAnnotationClass)) {

0 commit comments

Comments
 (0)
0