From 003a687d758f1f2bd3895661514bf80f296a0dd1 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 25 Jul 2024 13:06:46 +0000 Subject: [PATCH] [rector] Rector fixes --- src/NodeAnalyzer/AttrinationFinder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NodeAnalyzer/AttrinationFinder.php b/src/NodeAnalyzer/AttrinationFinder.php index 69cf5c0f..25ef790e 100644 --- a/src/NodeAnalyzer/AttrinationFinder.php +++ b/src/NodeAnalyzer/AttrinationFinder.php @@ -71,7 +71,7 @@ public function getByMany( $phpDocInfo = $this->phpDocInfoFactory->createFromNode($property); if ($phpDocInfo instanceof PhpDocInfo) { $foundDoctrineAnnotationTagValueNode = $phpDocInfo->getByAnnotationClasses($classNames); - if ($foundDoctrineAnnotationTagValueNode) { + if ($foundDoctrineAnnotationTagValueNode instanceof DoctrineAnnotationTagValueNode) { return $foundDoctrineAnnotationTagValueNode; } }