This patch ensures the database connection is initialized before
any deprecation error is handled by \TYPO3\CMS\Core\Error\ErrorHandler.
This is important as currently TYPO3 enforces an opened database
connection if initCommands are set that are configured in testing-
framework configuration. Opening a database connection inside the
ErrorHandler triggers some Doctrine DBAL api that sets and resets own
error handlers. Resetting an error handler inside another error handler
seems to even reset the later one.
This patch ensures the database connection is initialized before any deprecation error is handled by \TYPO3\CMS\Core\Error\ErrorHandler. This is important as currently TYPO3 enforces an opened database connection if initCommands are set that are configured in testing- framework configuration. Opening a database connection inside the ErrorHandler triggers some Doctrine DBAL api that sets and resets own error handlers. Resetting an error handler inside another error handler seems to even reset the later one.