Commit 8c9ea809 authored by Oliver Klee's avatar Oliver Klee Committed by Christian Kuhn
Browse files

[TASK] Improve a type annotation in ListUtility

Also simplify the code of a caller as detected by static code analysis.

Resolves: #97711
Relates: #97705
Releases: main, 11.5
Change-Id: I1323ffe047cc4954a8c031dbb0218739a7d95571

Tested-by: core-ci's avatarcore-ci <>
Tested-by: Stefan Bürk's avatarStefan Bürk <>
Tested-by: Christian Kuhn's avatarChristian Kuhn <>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <>
parent f2ade7fb
......@@ -209,7 +209,7 @@ class FileStorageTreeProvider
$items[] = array_merge(
$this->prepareFolderInformation($subFolder, is_string($subFolderName) ? $subFolderName : null),
$this->prepareFolderInformation($subFolder, $subFolderName),
'depth' => $currentDepth,
'expanded' => $expanded,
......@@ -28,7 +28,7 @@ class ListUtility
* Resolve special folders (by their role) into localised string
* @param Folder[] $folders
* @return array Array of \TYPO3\CMS\Core\Resource\Folder; folder name or role with folder name as keys
* @return array<string, Folder> array with Folders using the Folder name (with our without role) as key
public static function resolveSpecialFolderNames(array $folders)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment