Skip to content

Commit 2f26995

Browse files
committed
Change method name to sortByCaseInsensitiveName
1 parent 30f62b6 commit 2f26995

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Symfony/Component/Finder/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CHANGELOG
44
6.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

99
6.0
1010
---

src/Symfony/Component/Finder/Finder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/Symfony/Component/Finder/Tests/FinderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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',

0 commit comments

Comments
 (0)