From 98d580abb34f3cb6c098b6b48be5953583b1721d Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 31 Jul 2023 13:12:57 +0000 Subject: [PATCH] [ci-review] Rector Rectify --- src/Rector/v12/v0/typo3/AbstractMessageGetSeverityRector.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Rector/v12/v0/typo3/AbstractMessageGetSeverityRector.php b/src/Rector/v12/v0/typo3/AbstractMessageGetSeverityRector.php index 1c5da830e..c6c586960 100644 --- a/src/Rector/v12/v0/typo3/AbstractMessageGetSeverityRector.php +++ b/src/Rector/v12/v0/typo3/AbstractMessageGetSeverityRector.php @@ -6,6 +6,7 @@ use PhpParser\Node; use PhpParser\Node\Expr\MethodCall; +use PhpParser\Node\Identifier; use PHPStan\Type\ObjectType; use Rector\Core\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; @@ -40,7 +41,7 @@ public function refactor(Node $node) $nextNode = $this->betterNodeFinder->resolveNextNode($node); - if ($nextNode instanceof Node\Identifier && $this->isName($nextNode, 'value')) { + if ($nextNode instanceof Identifier && $this->isName($nextNode, 'value')) { return null; }