Project

General

Profile

Actions

Task #97858

closed

Improve type annotations regarding storage folder names

Added by Oliver Klee almost 2 years ago. Updated over 1 year 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 #1

Updated by Gerrit Code Review almost 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/+/75033

Actions #2

Updated by Oliver Klee almost 2 years ago

  • Related to Bug #97851: 11.5.13-dev: prepareFolderInformation(): Argument #2 ($alternativeName) must be of type ?string, int given added
Actions #3

Updated by Oliver Klee almost 2 years ago

  • Related to Task #97711: Improve the return type annotation of ListUtility::resolveSpecialFolderNames added
Actions #4

Updated by Oliver Klee almost 2 years ago

  • Blocked by Task #97859: Annotate that methods from InaccessibleFolder never return added
Actions #5

Updated by Gerrit Code Review almost 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/+/75033

Actions #6

Updated by Gerrit Code Review almost 2 years ago

Patch set 3 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/+/75033

Actions #7

Updated by Gerrit Code Review almost 2 years ago

Patch set 4 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/+/75033

Actions #8

Updated by Gerrit Code Review almost 2 years ago

Patch set 5 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/+/75033

Actions #9

Updated by Gerrit Code Review almost 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/+/75059

Actions #10

Updated by Oliver Klee almost 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #11

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF