Skip to content

Commit

Permalink
Fix path checking error
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-helldar committed Dec 15, 2024
1 parent 418aaab commit 631f56f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/Files.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected function delete(string $path, string $filename): void
File::ensureDelete($dir . '/' . $filename);
}

protected function directory(string $path): false|string
protected function directory(false|string $path): false|string
{
if (realpath($path) && is_dir($path)) {
return rtrim($path, '\\/');
Expand Down

0 comments on commit 631f56f

Please sign in to comment.