Skip to content

Commit e0cbef6

Browse files
authored
[Finder] fix wrong method call casing
1 parent 8e16e6b commit e0cbef6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)