Skip to content

Commit a731793

Browse files
committed
Avoid a duplicate method call
1 parent 89dd959 commit a731793

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Doctrine/RouteConditionMetadataListener.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,8 @@ public function loadClassMetadata(LoadClassMetadataEventArgs $eventArgs)
4949
}
5050

5151
$meta = $eventArgs->getClassMetadata();
52-
53-
if (null === $meta->getReflectionClass()) {
54-
return;
55-
}
56-
57-
if ($meta->getReflectionClass()->getName() !== 'Symfony\Component\Routing\Route') {
52+
$refl = $meta->getReflectionClass();
53+
if (null !== $refl && 'Symfony\Component\Routing\Route' !== $refl->getName()) {
5854
return;
5955
}
6056

0 commit comments

Comments
 (0)