From 7742c2d330ebe24a1d0fc883d8a87f2d2a4b2d1b Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Fri, 15 Nov 2024 11:09:31 +0400 Subject: [PATCH] =?UTF-8?q?le=20mode=20par=20d=C3=A9faut=20est=20w+b=20pou?= =?UTF-8?q?r=20file::writer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file.php b/src/file.php index c5c30a4..5ddc3b1 100644 --- a/src/file.php +++ b/src/file.php @@ -29,7 +29,7 @@ class file { return $file; } - static function writer($output, ?string $mode=null, ?callable $func=null): FileWriter { + static function writer($output, ?string $mode="w+b", ?callable $func=null): FileWriter { $file = new FileWriter(self::fix_dash($output), $mode); if ($func !== null) { try {