Skip to content

Commit e171d49

Browse files
phpstan-botclaude
andcommitted
Fix coding standards: use imports instead of fully qualified names in IntertwinedVariableByReferenceWithExpr
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent bc7c567 commit e171d49

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/Node/Expr/IntertwinedVariableByReferenceWithExpr.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
use Override;
66
use PhpParser\Node\Expr;
7+
use PhpParser\Node\Expr\Variable;
78
use PHPStan\Node\VirtualNode;
9+
use function is_string;
810

911
final class IntertwinedVariableByReferenceWithExpr extends Expr implements VirtualNode
1012
{
@@ -31,9 +33,9 @@ public function getAssignedExpr(): Expr
3133

3234
public function isSimpleVariableReference(): bool
3335
{
34-
return $this->expr instanceof \PhpParser\Node\Expr\Variable
36+
return $this->expr instanceof Variable
3537
&& is_string($this->expr->name)
36-
&& $this->assignedExpr instanceof \PhpParser\Node\Expr\Variable
38+
&& $this->assignedExpr instanceof Variable
3739
&& is_string($this->assignedExpr->name);
3840
}
3941

0 commit comments

Comments
 (0)