Skip to content

Commit 708fb6d

Browse files
authored
refactor: Fix phpstan always true (#9367)
1 parent 42a00ff commit 708fb6d

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

system/Helpers/filesystem_helper.php

Lines changed: 1 addition & 1 deletion
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

Lines changed: 0 additions & 8 deletions
This file was deleted.

utils/phpstan-baseline/loader.neon

Lines changed: 0 additions & 1 deletion
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
- codeigniter.cacheHandlerInstance.neon
65
- codeigniter.configArgumentInstanceof.neon
76
- codeigniter.frameworkExceptionInstance.neon

0 commit comments

Comments
 (0)