Skip to content

Commit fa66855

Browse files
committed
Issue #92: File permission issues
Signed-off-by: alexmerlin <alex.merlin.1985@gmail.com>
1 parent a9490ec commit fa66855

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/Writer/Stream.php‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030

3131
class Stream extends AbstractWriter
3232
{
33+
private const DEFAULT_PERMISSIONS = 0666;
34+
3335
/**
3436
* Separator between log entries
3537
*/
@@ -47,7 +49,7 @@ public function __construct(
4749
mixed $streamOrUrl,
4850
?string $mode = null,
4951
?string $logSeparator = null,
50-
?int $filePermissions = null
52+
?int $filePermissions = self::DEFAULT_PERMISSIONS,
5153
) {
5254
if ($streamOrUrl instanceof Traversable) {
5355
$streamOrUrl = iterator_to_array($streamOrUrl);

0 commit comments

Comments
 (0)