Skip to content

Commit 4132a97

Browse files
committed
Fixed typo in RealPath method on SplFileInfo class
1 parent dc75ff5 commit 4132a97

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)