#95125Warning during ext_localconf loading causes deprecate write to a database
Description
Steps to reproduce
Add something to ext_localconf.php that causes a PHP warning to occur, e.g.
`ext_localconf.php`:
$foo = file_get_contents('/tmp/path-to-missing-file.txt');
Then execute:
bin/typo3 cache:warmup
(or any other CLI command, but make sure to remove cached before)
Output:
PHP Deprecated: TYPO3\CMS\Core\Database\ConnectionPool can not be injected/instantiated during ext_localconf.php/TCA/ext_tables.php loading. Use lazy loading instead. in […]/typo3/sysext/core/Classes/ServiceProvider.php on line 142