Task #96725
closedUse generics for ObjectProphecy class properties
100%
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.
Updated by Benjamin Franzke about 2 years ago
- Related to Task #96173: Remove hideIfNotTranslated and hideIfDefaultLanguage methods added
Updated by Benjamin Franzke about 2 years ago
- Related to deleted (Task #96173: Remove hideIfNotTranslated and hideIfDefaultLanguage methods)
Updated by Benjamin Franzke about 2 years ago
- Related to Bug #96713: Fix incorrect Prophecy usages added
Updated by Gerrit Code Review about 2 years ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73259
Updated by Gerrit Code Review about 2 years ago
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73263
Updated by Benjamin Franzke about 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 2738ce5e40f3e421d7696be90997749e2e3b41a2.