Skip to content

Commit 4a6544b

Browse files
phpstan-botclaude
andcommitted
Rename isSimpleVariableReference() to isVariableToVariableReference() for clarity
The new name better describes what the method checks: whether both sides of the intertwined reference link are plain named variables. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3980ed8 commit 4a6544b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Analyser/MutatingScope.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2810,7 +2810,7 @@ public function invalidateExpression(Expr $expressionToInvalidate, bool $require
28102810
$exprExpr = $exprTypeHolder->getExpr();
28112811
if (
28122812
$exprExpr instanceof IntertwinedVariableByReferenceWithExpr
2813-
&& $exprExpr->isSimpleVariableReference()
2813+
&& $exprExpr->isVariableToVariableReference()
28142814
) {
28152815
continue;
28162816
}

src/Node/Expr/IntertwinedVariableByReferenceWithExpr.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function getAssignedExpr(): Expr
3131
return $this->assignedExpr;
3232
}
3333

34-
public function isSimpleVariableReference(): bool
34+
public function isVariableToVariableReference(): bool
3535
{
3636
return $this->expr instanceof Variable
3737
&& is_string($this->expr->name)

0 commit comments

Comments
 (0)