From f1f034bc0bb4953535e9a60580fd71f4bc14da28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Sat, 12 Feb 2022 22:05:55 +0100 Subject: [PATCH] Drop useless guard condition Apparently it was added in a08bc3b4d8567cdff05e89b272ba1e06e9d71c21 to satisfy Psalm. Either there was an issue with that version of Psalm or more helpful phpdoc was added to upstream packages, which makes this code block redundant. --- Mapping/ClassMetadataFactory.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Mapping/ClassMetadataFactory.php b/Mapping/ClassMetadataFactory.php index c84cfd2d7..a04a16ab5 100644 --- a/Mapping/ClassMetadataFactory.php +++ b/Mapping/ClassMetadataFactory.php @@ -5,7 +5,6 @@ use Doctrine\ORM\Id\AbstractIdGenerator; use Doctrine\ORM\Mapping\ClassMetadata; use Doctrine\ORM\Mapping\ClassMetadataFactory as BaseClassMetadataFactory; -use Doctrine\ORM\Mapping\ClassMetadataInfo; use function assert; @@ -18,10 +17,6 @@ protected function doLoadMetadata($class, $parent, $rootEntityFound, array $nonS { parent::doLoadMetadata($class, $parent, $rootEntityFound, $nonSuperclassParents); - if (! $class instanceof ClassMetadataInfo) { - return; - } - $customGeneratorDefinition = $class->customGeneratorDefinition; if (! isset($customGeneratorDefinition['instance'])) {