From d70e1b519d27e5b0090412c566bee79d57f7838e Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sun, 2 Sep 2018 18:58:07 -0400 Subject: misc fixes --- src/ZipStream.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/ZipStream.php') 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); -- cgit v1.2.3