Skip to content
This repository has been archived by the owner on Sep 6, 2020. It is now read-only.

Commit

Permalink
Ignoring Phar::NONE compression setting. (fixes #98)
Browse files Browse the repository at this point in the history
  • Loading branch information
kherge committed Mar 4, 2015
1 parent d320941 commit 6e53b90
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/lib/KevinGH/Box/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,14 @@ public function getCompressionAlgorithm()
);
}

return constant('Phar::' . $this->raw->compression);
$value = constant('Phar::' . $this->raw->compression);

// Phar::NONE is not valid for compressFiles()
if (Phar::NONE === $value) {
return null;
}

return $value;
}

return $this->raw->compression;
Expand Down

0 comments on commit 6e53b90

Please sign in to comment.