Skip to content

Commit

Permalink
Drop useless guard condition
Browse files Browse the repository at this point in the history
Apparently it was added in a08bc3b 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.
  • Loading branch information
greg0ire committed Feb 12, 2022
1 parent 100687e commit f1f034b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Mapping/ClassMetadataFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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'])) {
Expand Down

0 comments on commit f1f034b

Please sign in to comment.