Project

General

Profile

Actions

Bug #95411

closed

Fix the generics of ObjectManager and ObjectManagerInterface

Added by Oliver Klee about 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2021-09-30
Due date:
% Done:

100%

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

Description

In my projects, PHPStan complains where I use an ObjectManagerInterface in my tests:

24     PHPDoc tag @var for variable $objectManagerStub contains generic interface TYPO3\CMS\Extbase\Object\ObjectManagerInterface but does not specify its types: T  
You can turn this off by setting checkGenericClassInNonGenericObjectType: false in your phpstan.neon.

The generics annotations of the interface seem to be incorrect. Fix coming up.

Actions

Also available in: Atom PDF