Skip to content

Commit

Permalink
refactor: Fix phpstan always true (#9367)
Browse files Browse the repository at this point in the history
  • Loading branch information
neznaika0 authored Jan 10, 2025
1 parent 42a00ff commit 708fb6d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion system/Helpers/filesystem_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function directory_mirror(string $originDir, string $targetDir, bool $overwrite
if (! is_dir($target)) {
mkdir($target, 0755);
}
} elseif (! is_file($target) || ($overwrite && is_file($target))) {
} elseif ($overwrite || ! is_file($target)) {
copy($origin, $target);
}
}
Expand Down
8 changes: 0 additions & 8 deletions utils/phpstan-baseline/booleanAnd.rightAlwaysTrue.neon

This file was deleted.

1 change: 0 additions & 1 deletion utils/phpstan-baseline/loader.neon
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
includes:
- argument.type.neon
- assign.propertyType.neon
- booleanAnd.rightAlwaysTrue.neon
- codeigniter.cacheHandlerInstance.neon
- codeigniter.configArgumentInstanceof.neon
- codeigniter.frameworkExceptionInstance.neon
Expand Down

0 comments on commit 708fb6d

Please sign in to comment.