Skip to content

Commit fae590b

Browse files
committed
refactor: Fix phpstan always true
1 parent 046967a commit fae590b

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

system/Helpers/filesystem_helper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function directory_mirror(string $originDir, string $targetDir, bool $overwrite
9696
if (! is_dir($target)) {
9797
mkdir($target, 0755);
9898
}
99-
} elseif (! is_file($target) || ($overwrite && is_file($target))) {
99+
} elseif ($overwrite || ! is_file($target)) {
100100
copy($origin, $target);
101101
}
102102
}

utils/phpstan-baseline/booleanAnd.rightAlwaysTrue.neon

-8
This file was deleted.

utils/phpstan-baseline/loader.neon

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
includes:
22
- argument.type.neon
33
- assign.propertyType.neon
4-
- booleanAnd.rightAlwaysTrue.neon
54
- class.notFound.neon
65
- codeigniter.cacheHandlerInstance.neon
76
- codeigniter.configArgumentInstanceof.neon

0 commit comments

Comments
 (0)