Task #92298

phpstan related changes to DependencyInjection caused wrong type declaration

Added by Benjamin Franzke 11 months ago. Updated 10 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Start date:
2020-09-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

https://review.typo3.org/c/Packages/TYPO3.CMS/+/65685

In ServiceProviderRegistry::create Package argument was changed to PackageInterface,
but the method getServiveProvider() is not available on the Interface.
Package was declared as type (instead of PackageInterface) by intent.


Related issues

Related to TYPO3 Core - Task #92110: Fix phpstan checkFunctionArgumentTypes errors in ext:coreClosed2020-09-10

Actions
Is duplicate of TYPO3 Core - Bug #92491: ServiceProviderRegistry->create must not have PackageInterface type hintedClosedDaniel Goerz2020-10-06

Actions

Also available in: Atom PDF