la signature de file::writer est cohérente avec les autres méthodes
This commit is contained in:
parent
2f3a21aad4
commit
bda3cff3d3
@ -58,8 +58,8 @@ class file {
|
|||||||
return $file;
|
return $file;
|
||||||
}
|
}
|
||||||
|
|
||||||
static function writer($output, ?string $mode="w+b", ?callable $func=null): FileWriter {
|
static function writer($output, ?callable $func=null): FileWriter {
|
||||||
$file = new FileWriter(self::fix_dash($output), $mode);
|
$file = new FileWriter(self::fix_dash($output), "w+b");
|
||||||
if ($func !== null) {
|
if ($func !== null) {
|
||||||
try {
|
try {
|
||||||
$func($file);
|
$func($file);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user