We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7e4f32 commit 11d2705Copy full SHA for 11d2705
src/Collectors/ExceptionTraceCollector.php
@@ -32,12 +32,9 @@ public function __construct(callable $pipe = null)
32
33
public function collect()
34
{
35
- return collect($this->exception->getTrace())
36
- ->filter(function ($trace) {
37
- return isset($trace['file']) and isset($trace['line']);
38
- })
39
- ->map(function ($trace) {
40
- return $trace['file']."({$trace['line']})";
+ return collect(explode("\n", $this->exception->getTraceAsString()))
+ ->transform(function ($trace, $index) {
+ return ltrim($trace, "#$index ");
41
})
42
->all();
43
}
0 commit comments