File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
src/Symfony/Component/Finder Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ CHANGELOG
446.2
55---
66
7- * Add ` Finder::sortByCaseName () ` to sort by name with case insensitive sorting methods
7+ * Add ` Finder::sortByCaseInsensitiveName () ` to sort by name with case insensitive sorting methods
88
996.0
1010---
Original file line number Diff line number Diff line change @@ -449,7 +449,7 @@ public function sortByName(bool $useNaturalSort = false): static
449449 *
450450 * @see SortableIterator
451451 */
452- public function sortByCaseName (bool $ useNaturalSort = false ): static
452+ public function sortByCaseInsensitiveName (bool $ useNaturalSort = false ): static
453453 {
454454 $ this ->sort = $ useNaturalSort ? Iterator \SortableIterator::SORT_BY_NAME_NATURAL_CASE_INSENSITIVE : Iterator \SortableIterator::SORT_BY_NAME_CASE_INSENSITIVE ;
455455
Original file line number Diff line number Diff line change @@ -902,7 +902,7 @@ public function testSortByNameNatural()
902902 public function testSortByNameCaseInsensitive ()
903903 {
904904 $ finder = $ this ->buildFinder ();
905- $ this ->assertSame ($ finder , $ finder ->sortByCaseName (true ));
905+ $ this ->assertSame ($ finder , $ finder ->sortByCaseInsensitiveName (true ));
906906 $ this ->assertOrderedIterator ($ this ->toAbsolute ([
907907 'foo ' ,
908908 'foo/bar.tmp ' ,
@@ -924,7 +924,7 @@ public function testSortByNameCaseInsensitive()
924924 ]), $ finder ->in (self ::$ tmpDir )->getIterator ());
925925
926926 $ finder = $ this ->buildFinder ();
927- $ this ->assertSame ($ finder , $ finder ->sortByCaseName (false ));
927+ $ this ->assertSame ($ finder , $ finder ->sortByCaseInsensitiveName (false ));
928928 $ this ->assertOrderedIterator ($ this ->toAbsolute ([
929929 'foo ' ,
930930 'foo bar ' ,
You can’t perform that action at this time.
0 commit comments