From e0cbef6b6a374837bf688e5960cdce2141b0a8fa Mon Sep 17 00:00:00 2001 From: Saif Eddin G <29315886+azjezz@users.noreply.github.com> Date: Fri, 24 May 2019 13:25:55 +0100 Subject: [PATCH] [Finder] fix wrong method call casing --- Iterator/SortableIterator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Iterator/SortableIterator.php b/Iterator/SortableIterator.php index 53f8e31..3c7157a 100644 --- a/Iterator/SortableIterator.php +++ b/Iterator/SortableIterator.php @@ -39,7 +39,7 @@ public function __construct(\Traversable $iterator, $sort) if (self::SORT_BY_NAME === $sort) { $this->sort = function ($a, $b) { - return strcmp($a->getRealpath() ?: $a->getPathname(), $b->getRealpath() ?: $b->getPathname()); + return strcmp($a->getRealPath() ?: $a->getPathname(), $b->getRealPath() ?: $b->getPathname()); }; } elseif (self::SORT_BY_TYPE === $sort) { $this->sort = function ($a, $b) { @@ -49,7 +49,7 @@ public function __construct(\Traversable $iterator, $sort) return 1; } - return strcmp($a->getRealpath() ?: $a->getPathname(), $b->getRealpath() ?: $b->getPathname()); + return strcmp($a->getRealPath() ?: $a->getPathname(), $b->getRealPath() ?: $b->getPathname()); }; } elseif (self::SORT_BY_ACCESSED_TIME === $sort) { $this->sort = function ($a, $b) {