Issue Bug Closed

#95411Fix the generics of ObjectManager and ObjectManagerInterface

Oliver Klee 09/30/21, 14:23 updated 10/04/22, 14:12

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.

Reviews 3