Project

General

Profile

Actions

Bug #88924

closed

Wrong return hint for ResourceFactory getFileObjectFromCombinedIdentifier

Added by Kevin Ditscheid almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2019-08-06
Due date:
% Done:

100%

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

Description

The return type hint for the function `getFileObjectFromCombinedIdentifier` in the `ResourceFactory` is wrong, because the underlying function `getFileObjectByStorageAndIdentifier` can also return `NULL` or `ProcessedFile`.
https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/core/Classes/Resource/ResourceFactory.php#L395

Actions

Also available in: Atom PDF