Use symfony/debug error handler instead of the deprecated one
Merge pull request #753 from romainneutron/fix-error-handler

[3.8] Use symfony/debug error handler instead of the deprecated one