From 4132a97c74d026bfbb0f4f11e589b55bbe760dcd Mon Sep 17 00:00:00 2001 From: Jeroen Thora Date: Wed, 6 Jul 2016 12:31:35 +0200 Subject: [PATCH] Fixed typo in RealPath method on SplFileInfo class --- components/finder.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/finder.rst b/components/finder.rst index 5224ef48986..bbd4f41013e 100644 --- a/components/finder.rst +++ b/components/finder.rst @@ -31,7 +31,7 @@ directories:: foreach ($finder as $file) { // Dump the absolute path - var_dump($file->getRealpath()); + var_dump($file->getRealPath()); // Dump the relative path to the file, omitting the filename var_dump($file->getRelativePath()); @@ -163,7 +163,7 @@ You can also define your own sorting algorithm with ``sort()`` method:: $sort = function (\SplFileInfo $a, \SplFileInfo $b) { - return strcmp($a->getRealpath(), $b->getRealpath()); + return strcmp($a->getRealPath(), $b->getRealPath()); }; $finder->sort($sort);