[Finder] Case insensitive file sort

by @hmoreau

Some issues have been detected in this pull request

Issues that can be fixed by applying a patch

Review the proposed patch then download it to apply it manually or execute the following command from the repository root directory:

curl https://fabbot.io/patch/symfony/symfony/46126/9db6140835ee64e3a13bc670006d5cf5c44073a1/cs.diff | patch -p0
diff -ru src/Symfony/Component/Finder/Iterator/SortableIterator.php src/Symfony/Component/Finder/Iterator/SortableIterator.php
--- src/Symfony/Component/Finder/Iterator/SortableIterator.php	2022-05-30 10:28:08.775166494 +0000
+++ src/Symfony/Component/Finder/Iterator/SortableIterator.php	2022-05-30 10:28:13.836272028 +0000
@@ -86,7 +86,8 @@
         } elseif (self::SORT_BY_NONE === $sort) {
             $this->sort = $order;
         } elseif (\is_callable($sort)) {
-            $this->sort = $reverseOrder ? static function (\SplFileInfo $a, \SplFileInfo $b) use ($sort) { return -$sort($a, $b); } : $sort(...);
+            $this->sort = $reverseOrder ? static function (\SplFileInfo $a, \SplFileInfo $b) use ($sort) { return -$sort($a, $b); }
+            : $sort(...);
         } else {
             throw new \InvalidArgumentException('The SortableIterator takes a PHP callable or a valid built-in sort algorithm as an argument.');
         }

0
Common Typos

0
License Headers

0
Pull Request Contributor Headers

0
File Permissions

Issues that cannot be fixed automatically

in Commits list, a `git rebase` is needed to remove any merges
  • Merge branch 'symfony:6.1' into CASE_INSENSITIVE_FILE_LIST
  • Merge branch 'symfony:6.1' into CASE_INSENSITIVE_FILE_LIST
  • Merge branch 'symfony:6.1' into CASE_INSENSITIVE_FILE_LIST
  • Merge branch 'symfony:6.1' into CASE_INSENSITIVE_FILE_LIST
  • Merge branch 'symfony:6.2' into CASE_INSENSITIVE_FILE_LIST
  • Merge branch 'symfony:6.2' into CASE_INSENSITIVE_FILE_LIST
  • Merge branch 'symfony:6.2' into CASE_INSENSITIVE_FILE_LIST

0
Exception Messages Formatting

0
Usage of void in test files

0
Use ::class whenever possible

0
Deprecation Messages