Project

General

Profile

Actions

Bug #96660

closed

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

Added by Gabriel Kaufmann / Typoworx NewMedia almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-01-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

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??!

Actions

Also available in: Atom PDF