Project

General

Profile

Actions

Task #96725

closed

Use generics for ObjectProphecy class properties

Added by Benjamin Franzke about 2 years ago. Updated over 1 year ago.

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

100%

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

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #96713: Fix incorrect Prophecy usagesClosed2022-01-31

Actions
Actions

Also available in: Atom PDF