Merge pull request #31309 from nextcloud/fix/fix-checkers-php-error

Avoid PHP errors in the checkers drone step
pull/31317/head
Côme Chilliet 2022-02-22 09:04:56 +07:00 committed by GitHub
commit cb621f371f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

@ -32,7 +32,7 @@ foreach ($directories as $dir) {
$it = new \RecursiveDirectoryIterator($dir);
foreach (new RecursiveIteratorIterator($it) as $file) {
if ($file->getExtension() === 'map') {
if (($file->getExtension() === 'map') || $file->isDir()) {
continue;
}
$content = file_get_contents($file->getPathname());