diff --git a/src/Command/ErrorFormatter/TableErrorFormatter.php b/src/Command/ErrorFormatter/TableErrorFormatter.php index a6e8ed31398..4494233aacc 100644 --- a/src/Command/ErrorFormatter/TableErrorFormatter.php +++ b/src/Command/ErrorFormatter/TableErrorFormatter.php @@ -78,7 +78,11 @@ public function formatErrors( } if (is_string($this->editorUrl)) { $editorFile = $error->getTraitFilePath() ?? $error->getFilePath(); - $url = str_replace(['%file%', '%line%'], [$editorFile, (string) $error->getLine()], $this->editorUrl); + $url = str_replace( + ['%file%', '%rel_file%', '%line%'], + [$editorFile, $this->relativePathHelper->getRelativePath($editorFile), (string) $error->getLine()], + $this->editorUrl, + ); $message .= "\n✏️ ' . $this->relativePathHelper->getRelativePath($editorFile) . ''; } $rows[] = [