[Filesystem] fix wrong method call casing

This commit is contained in:
Saif Eddin G 2019-05-24 13:50:04 +01:00 committed by GitHub
parent ce26936730
commit 288f2b76e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}