Skip to content

Commit

Permalink
[TASK] Avoid type error in FileCollector
Browse files Browse the repository at this point in the history
Resolves: #104557
Releases: main, 12.4, 11.5
Change-Id: I1bea6d74fc444007c8787e0a642c86b35a7ccb90
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/85538
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
  • Loading branch information
lolli42 committed Aug 6, 2024
1 parent 4305a28 commit 6fb6d34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typo3/sysext/frontend/Classes/Resource/FileCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ static function (
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;
}
Expand Down

0 comments on commit 6fb6d34

Please sign in to comment.