Skip to content

Commit

Permalink
Merge pull request #116 from brefphp/deleugpn-patch-1
Browse files Browse the repository at this point in the history
Avoid fatal error when creating local directories
  • Loading branch information
deleugpn committed May 15, 2023
2 parents 5bd2272 + 12594cf commit 3bd8c34
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 3bd8c34

Please sign in to comment.