Skip to content

Commit 517e371

Browse files
committed
minor #6721 [Finder] Fixed typo in RealPath method on SplFileInfo class (acrobat)
This PR was merged into the 2.7 branch. Discussion ---------- [Finder] Fixed typo in RealPath method on SplFileInfo class The getRealPath method in SplFileInfo has a capital letter for getReal**p**ath. See [SplFileInfo::getRealPath](http://php.net/manual/en/splfileinfo.getrealpath.php) Found this typo when implementing the finder component and copying the example . Commits ------- 4132a97 Fixed typo in RealPath method on SplFileInfo class
2 parents dc75ff5 + 4132a97 commit 517e371

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/finder.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ directories::
3131

3232
foreach ($finder as $file) {
3333
// Dump the absolute path
34-
var_dump($file->getRealpath());
34+
var_dump($file->getRealPath());
3535

3636
// Dump the relative path to the file, omitting the filename
3737
var_dump($file->getRelativePath());
@@ -163,7 +163,7 @@ You can also define your own sorting algorithm with ``sort()`` method::
163163

164164
$sort = function (\SplFileInfo $a, \SplFileInfo $b)
165165
{
166-
return strcmp($a->getRealpath(), $b->getRealpath());
166+
return strcmp($a->getRealPath(), $b->getRealPath());
167167
};
168168

169169
$finder->sort($sort);

0 commit comments

Comments
 (0)