Skip to content

Commit 4ddd423

Browse files
committed
Fixes for tests
1 parent 8135e71 commit 4ddd423

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/helpers.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,12 @@ function dirsIntersect(array $directory, array $excludedDirs): bool
3030
*/
3131
function checkPermissions(string $directory): bool
3232
{
33-
3433
$directoryIterator = new \RecursiveDirectoryIterator($directory);
3534

3635
foreach(new \RecursiveIteratorIterator($directoryIterator) as $file) {
3736

38-
if(is_file($file) && !is_writable($file)) {
39-
37+
if($file->isFile() && !$file->isWritable()){
4038
return false;
41-
4239
}
4340

4441
}

0 commit comments

Comments
 (0)