1
0
Fork 0

SplFileInfo: getRealPath can return false in ArchivableFilesFinder (#10665)

pull/10669/head
Stephan 2022-03-29 11:28:33 +01:00 committed by GitHub
parent 37627f10d0
commit 1fff47bfc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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