|
@@ -131,6 +131,9 @@ class NormalizerFormatter implements FormatterInterface
|
|
|
foreach ($trace as $frame) {
|
|
foreach ($trace as $frame) {
|
|
|
if (isset($frame['file'])) {
|
|
if (isset($frame['file'])) {
|
|
|
$data['trace'][] = $frame['file'].':'.$frame['line'];
|
|
$data['trace'][] = $frame['file'].':'.$frame['line'];
|
|
|
|
|
+ } elseif (isset($frame['function']) && $frame['function'] === '{closure}') {
|
|
|
|
|
+ // We should again normalize the frames, because it might contain invalid items
|
|
|
|
|
+ $data['trace'][] = $frame['function'];
|
|
|
} else {
|
|
} else {
|
|
|
// We should again normalize the frames, because it might contain invalid items
|
|
// We should again normalize the frames, because it might contain invalid items
|
|
|
$data['trace'][] = $this->toJson($this->normalize($frame), true);
|
|
$data['trace'][] = $this->toJson($this->normalize($frame), true);
|