From 12594cfbc791e92e2548ca4ea548fcb00648ed8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Aur=C3=A9lio=20Deleu?= Date: Sun, 30 Apr 2023 07:56:21 -0400 Subject: [PATCH] Avoid fatal error when creating local directories --- src/StorageDirectories.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StorageDirectories.php b/src/StorageDirectories.php index 753cc38..c4e6eb4 100644 --- a/src/StorageDirectories.php +++ b/src/StorageDirectories.php @@ -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); }