Actions
Bug #93439
openInconsistencies in type annotations
Status:
New
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2021-02-04
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Some parts of Extbase have wrong type annotations which lead to wrong results of static code analysis
- Extbase Repository->findByUid()/findByIdentifier might return null when a non-existent uid is queried
(It might be argued, that Repositories should be generics and therefore the 'object' return type should be replaced by the generic type)
- Extbase AbstractDomainObject->getUid() might return null
- Extbase Mvc Request >getOriginalRequest might return null TYPO3\CMS\Core\Resource\ResourceFactory->getStorageObjectFromCombinedIdentifier might return null
Updated by Christian Kuhn almost 3 years ago
- Extbase Repository->findByUid()/findByIdentifier might return null when a non-existent uid is queried (It might be argued, that Repositories should be generics and therefore the 'object' return type should be replaced by the generic type) - Extbase AbstractDomainObject->getUid() might return null - Extbase Mvc Request >getOriginalRequest might return null
Those have been changed meanwhile.
TYPO3\CMS\Core\Resource\ResourceFactory->getStorageObjectFromCombinedIdentifier might return null
This one seems to be still open.
Actions