php-zip
php-zip copied to clipboard
error adding file
adding a single file return a error
array_diff(): at least 2 parameters are required, 1 given on line 503 in vendor/php-zip/src/Zip.php
i add the file using the fallowing command
$zip = new Zip();
$zip->zip_start($path_to_zip);
$zip->zip_add($path_to_file_name); // adding a file
$zip->zip_end();