My bad, I’ve figured out that the problem is nothing to do with permissions.
The problem is actually caused because on line 29 of main.php the script tries to access a directory (such as .git) using file_get_contents()
and as it’s not a file, a warning is thrown.
I propose the following change:
if ( is_dir($filename) ) {
$other[$filename] = NULL;
} else {
$other[$filename] = file_get_contents( $filename );
}
instead of:
$other[$filename] = file_get_contents( $filename );
That way the warnings will no longer occur but directories like .git will still be caught by the following checks such as WARNING: .git .gitignore .ds_store Hidden Files or Folders found.
.