From d11243b5d0c10c785472e7026b022b3b39f47864 Mon Sep 17 00:00:00 2001 From: alexmerlin Date: Fri, 31 Jul 2026 17:15:32 +0300 Subject: [PATCH] Issue #94: File permission issues Signed-off-by: alexmerlin --- src/Writer/Stream.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Writer/Stream.php b/src/Writer/Stream.php index abd7723..3010b1f 100644 --- a/src/Writer/Stream.php +++ b/src/Writer/Stream.php @@ -47,6 +47,8 @@ class Stream extends AbstractWriter { + private const DEFAULT_PERMISSIONS = 0666; + /** * Separator between log entries */ @@ -69,7 +71,7 @@ public function __construct( mixed $streamOrUrl, ?string $mode = null, ?string $logSeparator = null, - ?int $filePermissions = null + ?int $filePermissions = self::DEFAULT_PERMISSIONS, ) { $logLifetime = null; $streamFormat = null;