Skip to content
Permalink
Browse files

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
  • Loading branch information...
fabpot committed May 25, 2019
2 parents e214d28 + 9b558fe commit b647f74996cbcf47ad367d19c2fcf0333fbf8899
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Symfony/Component/Finder/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) {

0 comments on commit b647f74

Please sign in to comment.
You can’t perform that action at this time.