Project

General

Profile

Actions

Task #97858

closed

Improve type annotations regarding storage folder names

Added by Oliver Klee over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Code Cleanup
Target version:
Start date:
2022-07-05
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Storage folder names can also be int-like string, which causes them to be autoconverted to ints when used as array key. This recently has lead to a bug. We should make our code more explicit to help static code analysis and devs avoid this problem in the future.


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #97851: 11.5.13-dev: prepareFolderInformation(): Argument #2 ($alternativeName) must be of type ?string, int givenClosed2022-07-04

Actions
Related to TYPO3 Core - Task #97711: Improve the return type annotation of ListUtility::resolveSpecialFolderNamesClosed2022-05-31

Actions
Blocked by TYPO3 Core - Task #97859: Annotate that methods from InaccessibleFolder never returnClosed2022-07-05

Actions
Actions

Also available in: Atom PDF