SplFileInfo: getRealPath can return false in ArchivableFilesFinder (#10665)
parent
37627f10d0
commit
1fff47bfc7
|
@ -58,7 +58,7 @@ class ArchivableFilesFinder extends \FilterIterator
|
|||
$this->finder = new Finder();
|
||||
|
||||
$filter = function (\SplFileInfo $file) use ($sources, $filters, $fs): bool {
|
||||
if ($file->isLink() && strpos($file->getRealPath(), $sources) !== 0) {
|
||||
if ($file->isLink() && ($file->getRealPath() === false || strpos($file->getRealPath(), $sources) !== 0)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue