Issue Task Closed

#96725Use generics for ObjectProphecy class properties

Benjamin Franzke 02/01/22, 15:52 updated 10/04/22, 14:07

Description

With #96713 all type annotations on class properties
in tests have been reduced to ObjectProphecy only,
removing the information which class or interface
is mocked.

The jangregor/phpstan-prophecy plugin defines ObjectProphecy
as a generic tag, allowing generics to be used and
resolved by PHPStan. Therefore the type annotations
on class properties or function results are now re-added.

Reviews 2