The trace does not include the file / line at which the exception is thrown
@@ -101,7 +101,6 @@ class NormalizerFormatter implements FormatterInterface
);
$trace = $e->getTrace();
- array_shift($trace);
foreach ($trace as $frame) {
if (isset($frame['file'])) {
$data['trace'][] = $frame['file'].':'.$frame['line'];
@@ -12,7 +12,6 @@ class ScalarFormatterTest extends \PHPUnit_Framework_TestCase
{
$data = array();
$data[] = $frame['file'].':'.$frame['line'];