Skip to content

Commit 52edd8a

Browse files
committed
Check if editorUrl is null
1 parent 1574f3c commit 52edd8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TicketSwapErrorFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public static function link(
134134
$format,
135135
[
136136
'{absolutePath}' => $absolutePath,
137-
'{editorUrl}' => str_replace(
137+
'{editorUrl}' => $editorUrl === null ? '' : str_replace(
138138
['%file%', '%line%'],
139139
[$absolutePath, $line],
140140
$editorUrl,

0 commit comments

Comments
 (0)