fix source check

This commit is contained in:
Dennis Eichhorn 2020-10-08 15:55:45 +02:00
parent 00d3f3d947
commit 64f498588f

View File

@ -57,7 +57,7 @@ class TarGz implements ArchiveInterface
public static function unpack(string $source, string $destination) : bool
{
$destination = \str_replace('\\', '/', $destination);
if (!\is_dir($destination) || !\is_file($source)) {
if (!\is_dir($destination) || \is_file($source)) {
return false;
}