Skip to content

Commit

Permalink
Update backtrace formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Dec 2, 2017
1 parent 745a95b commit cd3e986
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/Internal/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
*/
function formatStacktrace(array $trace): string {
return \implode("\n", \array_map(function ($e, $i) {
$line = "#{$i} {$e['file']}:{$e['line']} ";
$line = "#{$i} ";

if (isset($e["file"])) {
$line = "{$e['file']}:{$e['line']} ";

This comment has been minimized.

Copy link
@staabm

staabm Dec 2, 2017

Member

.= ?

This comment has been minimized.

Copy link
@trowski

trowski Dec 2, 2017

Author Member

Yep, thanks.

}

if ($e["type"]) {
$line .= $e["class"] . $e["type"];
Expand Down

0 comments on commit cd3e986

Please sign in to comment.