Skip to content

Commit 0827af5

Browse files
phpstan-botclaude
authored 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 511e73e commit 0827af5

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
@@ -2835,7 +2835,7 @@ public function invalidateExpression(Expr $expressionToInvalidate, bool $require
28352835
$exprExpr = $exprTypeHolder->getExpr();
28362836
if (
28372837
$exprExpr instanceof IntertwinedVariableByReferenceWithExpr
2838-
&& $exprExpr->isSimpleVariableReference()
2838+
&& $exprExpr->isVariableToVariableReference()
28392839
) {
28402840
continue;
28412841
}

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)