Skip to content

Commit

Permalink
[rector] Rector fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 15, 2024
1 parent 26697a7 commit 19239af
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Rector\Doctrine\CodeQuality\Rector\Property;

use PhpParser\Node\Attribute;
use PhpParser\Node;
use PhpParser\Node\Expr;
use PhpParser\Node\Stmt\Class_;
Expand Down Expand Up @@ -246,7 +247,7 @@ private function refactorAttribute(Expr $expr, PhpDocInfo $phpDocInfo, Property
$property,
CollectionMapping::TO_MANY_CLASSES
);
if ($toManyAttribute instanceof Node\Attribute) {
if ($toManyAttribute instanceof Attribute) {
$targetEntityClassName = $this->targetEntityResolver->resolveFromAttribute($toManyAttribute);
} else {
$phpDocVarTagValueNode = $phpDocInfo->getVarTagValueNode();
Expand Down

0 comments on commit 19239af

Please sign in to comment.