Skip to content

Commit

Permalink
minor #52088 [ErrorHandler] Fix file link format call in trace view (…
Browse files Browse the repository at this point in the history
…fancyweb)

This PR was merged into the 6.4 branch.

Discussion
----------

[ErrorHandler] Fix file link format call in trace view

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | no
| License       | MIT

Leftover from #50734

Commits
-------

c2f01c2 [ErrorHandler] Fix file link format call in trace view
  • Loading branch information
nicolas-grekas committed Oct 17, 2023
2 parents 3fb0e11 + c2f01c2 commit abe5555
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<?php if ($trace['file']) { ?>
<?php
$lineNumber = $trace['line'] ?: 1;
$fileLink = $this->getFileLink($trace['file'], $lineNumber);
$fileLink = $this->fileLinkFormat->format($trace['file'], $lineNumber);
$filePath = strtr(strip_tags($this->formatFile($trace['file'], $lineNumber)), [' at line '.$lineNumber => '']);
$filePathParts = explode(\DIRECTORY_SEPARATOR, $filePath);
?>
Expand Down

0 comments on commit abe5555

Please sign in to comment.