8000 minor #31606 [Finder] fix wrong method call casing (azjezz) · symfony/symfony@b647f74 · GitHub
[go: up one dir, main page]

Skip to content

Commit b647f74

Browse files
committed
minor #31606 [Finder] fix wrong method call casing (azjezz)
This PR was merged into the 3.4 branch. Discussion ---------- [Finder] fix wrong method call casing fix wrong method call casing for [`SplFileInfo::getRealPath()`](https://www.php.net/manual/en/splfileinfo.getrealpath.php) | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT Commits ------- 9b558fe [Finder] fix wrong method call casing
2 parents e214d28 + 9b558fe commit b647f74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Finder/Iterator/SortableIterator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct(\Traversable $iterator, $sort)
3939

4040
if (self::SORT_BY_NAME === $sort) {
4141
$this->sort = function ($a, $b) {
42-
return strcmp($a->getRealpath() ?: $a->getPathname(), $b->getRealpath() ?: $b->getPathname());
42+
return strcmp($a->getRealPath() ?: $a->getPathname(), $b->getRealPath() ?: $b->getPathname());
4343
};
4444
} elseif (self::SORT_BY_TYPE === $sort) {
4545
$this->sort = function ($a, $b) {
@@ -49,7 +49,7 @@ public function __construct(\Traversable $iterator, $sort)
4949
return 1;
5050
}
5151

52-
return strcmp($a->getRealpath() ?: $a->getPathname(), $b->getRealpath() ?: $b->getPathname());
52+
return strcmp($a->getRealPath() ?: $a->getPathname(), $b->getRealPath() ?: $b->getPathname());
5353
};
5454
} elseif (self::SORT_BY_ACCESSED_TIME === $sort) {
5555
$this->sort = function ($a, $b) {

0 commit comments

Comments
 (0)
0