From d8fb28e7a36d9ae03077ec0b37f50b5f8b38931c Mon Sep 17 00:00:00 2001
From: Christian Kuhn <lolli@schwarzbu.ch>
Date: Tue, 6 Aug 2024 16:25:29 +0200
Subject: [PATCH] [TASK] Avoid type error in FileCollector
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Resolves: #104557
Releases: main, 12.4, 11.5
Change-Id: I1bea6d74fc444007c8787e0a642c86b35a7ccb90
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/85534
Tested-by: Wolfgang Wagner <wwagner@wwagner.net>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Stefan Bürk <stefan@buerk.tech>
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
---
 typo3/sysext/frontend/Classes/Resource/FileCollector.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/typo3/sysext/frontend/Classes/Resource/FileCollector.php b/typo3/sysext/frontend/Classes/Resource/FileCollector.php
index 4533b501da6b..41d5dc793048 100644
--- a/typo3/sysext/frontend/Classes/Resource/FileCollector.php
+++ b/typo3/sysext/frontend/Classes/Resource/FileCollector.php
@@ -203,7 +203,7 @@ class FileCollector implements \Countable, LoggerAwareInterface
                     FileInterface $b
                 ) use ($sortingProperty) {
                     if ($a->hasProperty($sortingProperty) && $b->hasProperty($sortingProperty)) {
-                        return strnatcasecmp($a->getProperty($sortingProperty), $b->getProperty($sortingProperty));
+                        return strnatcasecmp((string)$a->getProperty($sortingProperty), (string)$b->getProperty($sortingProperty));
                     }
                     return 0;
                 }
-- 
GitLab