File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/QafooLabs/Refactoring/Application Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 3
3
namespace QafooLabs \Refactoring \Application ;
4
4
5
5
use QafooLabs \Refactoring \Domain \Model \File ;
6
+ use QafooLabs \Refactoring \Domain \Model \LineRange ;
6
7
use QafooLabs \Refactoring \Domain \Model \Variable ;
7
8
use QafooLabs \Refactoring \Domain \Model \RefactoringException ;
8
9
use QafooLabs \Refactoring \Domain \Model \EditingAction \AddProperty ;
@@ -46,7 +47,7 @@ private function convertVariablesToInstanceVariables()
46
47
$ definedVariables = $ this ->getDefinedVariables ();
47
48
48
49
if ( ! $ definedVariables ->contains ($ this ->convertVariable )) {
49
- throw RefactoringException::variableNotInRange ($ this ->convertVariable , $ selectedMethodLineRange );
50
+ throw RefactoringException::variableNotInRange ($ this ->convertVariable , LineRange:: fromSingleLine ( $ this -> line ) );
50
51
}
51
52
52
53
$ this ->session ->addEdit (new LocalVariableToInstance ($ definedVariables , $ this ->convertVariable ));
You can’t perform that action at this time.
0 commit comments