Another minor improvement to error formatting

This commit is contained in:
vladar 2016-10-21 18:36:49 +07:00
parent 7f1d74f980
commit 6c076e21d4

View File

@ -72,6 +72,11 @@ class FormattedError
array_shift($trace);
}
// Remove root call as it's likely error handler trace:
else if (!isset($trace[0]['file'])) {
array_shift($trace);
}
return array_map(function($err) {
$safeErr = array_intersect_key($err, ['file' => true, 'line' => true]);