Skip to content

Commit 746d697

Browse files
committed
Fix undeclared variable usage
1 parent 2aaabe1 commit 746d697

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/QafooLabs/Refactoring/Application/RenameLocalVariable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private function renameLocalVariable()
6161
$definedVariables = $this->getDefinedVariables();
6262

6363
if ( ! $definedVariables->contains($this->oldName)) {
64-
throw RefactoringException::variableNotInRange($this->oldName, $selectedMethodLineRange);
64+
throw RefactoringException::variableNotInRange($this->oldName, LineRange::fromSingleLine($this->line));
6565
}
6666

6767
$this->session->addEdit(new RenameVariable($definedVariables, $this->oldName, $this->newName));

0 commit comments

Comments
 (0)