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