Task #98251
closedAvoid unsolvable phpstan error for return-type mismatch
100%
Description
PHP8.1 introduced native return types to native methods
and interfaces, which crashes if they are not compatible.
As a workaround the introduced `#[\ReturnTypeWillChange]`
attribute can be used to mitigate this, which has been
used to mitigate quite some issues with it.
PHPStan has released a new version which fixes a bunch of
bugs, which detects more issues in core. These will be
addressed with the dedicated PHPStan raise patch. However,
one issue cannot be solved or added to the baseline and
must be fixed beforehand. The reason is, that phpstan also
evaluates the PHPDoc return type.
Updated by Stefan Bürk about 2 years ago
- Related to Task #98246: Update PHPStan 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/+/75599
Updated by Gerrit Code Review about 2 years ago
Patch set 2 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/+/75599
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/+/75575
Updated by Stefan Bürk about 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 6bed3af2a27db004b98c353316c238708fdfed42.