minor #31607 [Filesystem] fix wrong method call casing (azjezz)
This PR was merged into the 4.3 branch.
Discussion
----------
[Filesystem] fix wrong method call casing
fix wrong method call casing for [`SplFileInfo::getPathname()`](https://www.php.net/manual/en/splfileinfo.getpathname.php)
| Q | A
| ------------- | ---
| Branch? | 4.3
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| License | MIT
Commits
-------
288f2b76e3
[Filesystem] fix wrong method call casing
This commit is contained in:
commit
af0f9557aa
@ -572,7 +572,7 @@ class Filesystem
|
||||
$targetDirInfo = new \SplFileInfo($targetDir);
|
||||
|
||||
foreach ($iterator as $file) {
|
||||
if ($file->getPathName() === $targetDir || $file->getRealPath() === $targetDir || 0 === strpos($file->getRealPath(), $targetDirInfo->getRealPath())) {
|
||||
if ($file->getPathname() === $targetDir || $file->getRealPath() === $targetDir || 0 === strpos($file->getRealPath(), $targetDirInfo->getRealPath())) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user