[Psalm] Resolve UndefinedClass

This commit is contained in:
2019-05-12 19:16:49 +03:00
parent ffd5b82a14
commit 2af30dd555
2 changed files with 1 additions and 4 deletions

View File

@@ -39,8 +39,6 @@
<PossiblyNullPropertyAssignmentValue errorLevel="info"/>
<PossiblyNullPropertyFetch errorLevel="info"/>
<PossiblyNullReference errorLevel="info"/>
<UndefinedClass errorLevel="info"/>
</issueHandlers>
<plugins>

View File

@@ -4,7 +4,6 @@ declare(strict_types=1);
namespace App\EventListener;
use App\Doctrine\ORM\Mapping\Traits\Identity;
use App\Doctrine\Registry;
use App\Entity\Embeddable\Relation;
use Doctrine\Common\EventSubscriber;
@@ -59,8 +58,8 @@ final class TenantRelationListener implements EventSubscriber
public function postLoad(LifecycleEventArgs $event): void
{
/** @var Identity $entity */
$entity = $event->getEntity();
\assert(\method_exists($entity, 'getId'));
$classMetadata = $this->registry->classMetaData($entity);