Skip to content

Commit fe80a2d

Browse files
committed
Fix extract method handler
1 parent 8bf6a64 commit fe80a2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/Extension/CodeTransformExtra/Rpc/ExtractMethodHandler.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function handle(array $arguments)
7171
return $this->createInputCallback($arguments);
7272
}
7373

74-
$sourceCode = SourceCode::fromString($arguments[self::PARAM_SOURCE]);
74+
$sourceCode = SourceCode::fromStringAndPath($arguments[self::PARAM_SOURCE], $arguments[self::PARAM_PATH]);
7575
$textDocumentEdits = $this->extractMethod->extractMethod(
7676
$sourceCode,
7777
$arguments[self::PARAM_OFFSET_START],

0 commit comments

Comments
 (0)