We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89dd959 commit a731793Copy full SHA for a731793
Doctrine/RouteConditionMetadataListener.php
@@ -49,12 +49,8 @@ public function loadClassMetadata(LoadClassMetadataEventArgs $eventArgs)
49
}
50
51
$meta = $eventArgs->getClassMetadata();
52
-
53
- if (null === $meta->getReflectionClass()) {
54
- return;
55
- }
56
57
- if ($meta->getReflectionClass()->getName() !== 'Symfony\Component\Routing\Route') {
+ $refl = $meta->getReflectionClass();
+ if (null !== $refl && 'Symfony\Component\Routing\Route' !== $refl->getName()) {
58
return;
59
60
0 commit comments