Project

General

Profile

Actions

Bug #95730

closed

Wrong return type annotations in Result->getFlattenedErrors()

Added by Robert Kärner about 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2021-10-22
Due date:
% Done:

100%

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

Description

In a custom developed extension, PHPStan is complaining about

typo3/sysext/extbase/Classes/Error/Result.php -> getFlattenedErrors()

returning the wrong type. It is annotated as "Error[]" but actually returns "Error[][]".

Actions

Also available in: Atom PDF