From bda3cff3d35bc949220fa30c5bf6f9338236dfa4 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Thu, 16 Oct 2025 15:43:30 +0400 Subject: [PATCH] =?UTF-8?q?la=20signature=20de=20file::writer=20est=20coh?= =?UTF-8?q?=C3=A9rente=20avec=20les=20autres=20m=C3=A9thodes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- php/src/file.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/src/file.php b/php/src/file.php index 4c84f58..1045293 100644 --- a/php/src/file.php +++ b/php/src/file.php @@ -58,8 +58,8 @@ class file { return $file; } - static function writer($output, ?string $mode="w+b", ?callable $func=null): FileWriter { - $file = new FileWriter(self::fix_dash($output), $mode); + static function writer($output, ?callable $func=null): FileWriter { + $file = new FileWriter(self::fix_dash($output), "w+b"); if ($func !== null) { try { $func($file);