Skip to content

Commit 8c943f6

Browse files
authored
Merge pull request #96 from dotkernel/issue-93
Issue #93: File permission issues
2 parents c938250 + 016690d commit 8c943f6

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)