mirror of
https://github.com/danog/amp.git
synced 2024-11-26 20:15:00 +01:00
Update backtrace formatting
This commit is contained in:
parent
745a95ba67
commit
e3b0b9a0c7
@ -14,7 +14,11 @@ namespace Amp\Internal;
|
|||||||
*/
|
*/
|
||||||
function formatStacktrace(array $trace): string {
|
function formatStacktrace(array $trace): string {
|
||||||
return \implode("\n", \array_map(function ($e, $i) {
|
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']} ";
|
||||||
|
}
|
||||||
|
|
||||||
if ($e["type"]) {
|
if ($e["type"]) {
|
||||||
$line .= $e["class"] . $e["type"];
|
$line .= $e["class"] . $e["type"];
|
||||||
|
Loading…
Reference in New Issue
Block a user