Skip to content

Commit

Permalink
Avoid fatal error when creating local directories
Browse files Browse the repository at this point in the history
  • Loading branch information
deleugpn authored Apr 30, 2023
1 parent 42f96ec commit 12594cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StorageDirectories.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static function create()

$directories = array_filter($directories, static fn ($directory) => ! is_dir($directory));

if (count($directories)) {
if (count($directories) && defined('STDERR')) {
fwrite(STDERR, 'Creating storage directories: ' . implode(', ', $directories) . PHP_EOL);
}

Expand Down

0 comments on commit 12594cf

Please sign in to comment.