Issue Bug Closed

#96660Bug in EXT:core, ExtensionManagementUtility.php causing Runtime Exception

Gabriel Kaufmann TYPOworx GmbH | NewMedia 01/27/22, 17:06 updated 01/28/22, 10:44

Description

My TYPO3 ^10.4 instance (currently 10.4.23) throws these errors after composer running some typo3-hooks:

Uncaught TYPO3 Exception #1476107295: PHP Runtime Deprecation Notice: Required parameter $title follows optional parameter $_ in /var/www/../public/typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php line 974
thrown in file /var/www/../public/typo3/sysext/core/Classes/Error/ErrorHandler.php
in line 134

I’m pretty shure the culprit is wrong definition of non-optional arguments, here:

https://github.com/TYPO3/typo3/blob/de2f469ccc2b4f7dbfffccbf54a5bf063c79ae49/typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php#L974

Trying to fix it myself, will bring us right to the next bug:

PHP Fatal error: Declaration of Symfony\Component\DependencyInjection\ServiceLocator::has(string $id) must be compatible with Psr\Container\ContainerInterface::has($id) in /var/www/../vendor/symfony/dependency-injection/ServiceLocator.php on line 46

Whats going on here??!

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.