le mode par défaut est w+b pour file::writer
This commit is contained in:
		
							parent
							
								
									0593c3ed9d
								
							
						
					
					
						commit
						7742c2d330
					
				@ -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 {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user