Skip to content

Commit cee5a2b

Browse files
authored
Add support for relative file path in link (#6)
1 parent abbc241 commit cee5a2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TicketSwapErrorFormatter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ public static function link(
133133
[
134134
'{absolutePath}' => $absolutePath,
135135
'{editorUrl}' => $editorUrl === null ? '' : str_replace(
136-
['%file%', '%line%'],
137-
[$absolutePath, $line],
136+
['%relFile%', '%file%', '%line%'],
137+
[$relativePath, $absolutePath, $line],
138138
$editorUrl,
139139
),
140140
'{relativePath}' => $relativePath,

0 commit comments

Comments
 (0)