After the upgrade from Symfony 4.2 to 4.4, the Debugger Class showed me, that I should change from
use Symfony\Component\Debug\Debug;
to
use Symfony\Component\ErrorHandler\Debug;
But after this, the ErrorHandler does not work, instead it gives a the strange message
What can be the reason for such a behaviour?
PHP Fatal error: Uncaught Error: Class'Symfony\Component\ErrorHandler\ErrorEnhancer\UndefinedFunctionErrorEnhancer'not found in/mnt/web208/c0/48/52070748/htdocs/suite_concept12_de/vendor/symfony/error-handler/ErrorHandler.php:720
29.09.2020 15:45:44 wst.concept12.de [client 2003:d0:1f00::] Stack trace:29.09.2020 15:45:44 wst.concept12.de [client 2003:d0:1f00::] #0 /mnt/web208/c0/48/52070748/htdocs/suite_concept12_de/vendor/symfony/error-handler/ErrorHandler.php(572):Symfony\Component\ErrorHandler\ErrorHandler->getErrorEnhancers()29.09.2020 15:45:44 wst.concept12.de [client 2003:d0:1f00::] #1 /mnt/web208/c0/48/52070748/htdocs/suite_concept12_de/vendor/symfony/error-handler/ErrorHandler.php(677):Symfony\Component\ErrorHandler\ErrorHandler->handleException(Object(Symfony\Component\ErrorHandler\Error\FatalError))29.09.2020 15:45:44 wst.concept12.de [client 2003:d0:1f00::] #2 [internal function]:Symfony\Component\ErrorHandler\ErrorHandler::handleFatalError()29.09.2020 15:45:44 wst.concept12.de [client 2003:d0:1f00::] #3 {main}29.09.2020 15:45:44 wst.concept12.de [client 2003:d0:1f00::] thrown in /mnt/web208/c0/48/52070748/htdocs/suite_concept12_de/vendor/symfony/error-handler/ErrorHandler.phpon line 720