Merge pull request #31314 from nextcloud/backport/31309/stable22

[stable22] Avoid PHP errors in the checkers drone step
This commit is contained in:
Côme Chilliet 2022-02-24 09:54:05 +01:00 committed by GitHub
commit c31e9583cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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());