summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2018-09-02 18:58:07 -0400
committerPaul Duncan <pabs@pablotron.org>2018-09-03 09:54:46 -0400
commitd70e1b519d27e5b0090412c566bee79d57f7838e (patch)
tree147e43270069957babd755c984bc26ab31f0f22f
parentb86d48168233bc9e7ef9d0f92298c7f2a5554c85 (diff)
downloadzipstream-php-d70e1b519d27e5b0090412c566bee79d57f7838e.tar.bz2
zipstream-php-d70e1b519d27e5b0090412c566bee79d57f7838e.zip
misc fixes
-rw-r--r--src/ZipStream.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/ZipStream.php b/src/ZipStream.php
index 4b2e8d5..a3a8313 100644
--- a/src/ZipStream.php
+++ b/src/ZipStream.php
@@ -1350,15 +1350,12 @@ final class ZipStream {
$args = array_merge(self::$FILE_DEFAULTS, $args);
try {
- # get compression method
- $method = $this->get_entry_method($args);
-
# create new entry
$e = new Entry(
$this->output,
$this->pos,
$dst_path,
- $method,
+ $this->get_entry_method($args),
$this->get_entry_time($args),
$args['comment']
);
@@ -1455,7 +1452,7 @@ final class ZipStream {
public static function send(
string $name,
callable $cb,
- array &$args = []
+ array $args = []
) : int {
# create archive
$zip = new self($name, $args);