From fefc106ef68c401087e29dd950c7d95dd475fd79 Mon Sep 17 00:00:00 2001 From: MakiCode Date: Mon, 12 Oct 2015 10:18:57 -0500 Subject: [PATCH] Removed type check on ArchiveManager --- src/Composer/Package/Archiver/ArchiveManager.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Composer/Package/Archiver/ArchiveManager.php b/src/Composer/Package/Archiver/ArchiveManager.php index dbf0b5977..621fd5286 100644 --- a/src/Composer/Package/Archiver/ArchiveManager.php +++ b/src/Composer/Package/Archiver/ArchiveManager.php @@ -108,10 +108,7 @@ class ArchiveManager if (empty($format)) { throw new \InvalidArgumentException('Format must be specified'); } - if (null !== $fileName && !is_string($fileName)) { - throw new \InvalidArgumentException('fileName must be a string'); - } - + // Search for the most appropriate archiver $usableArchiver = null; foreach ($this->archivers as $archiver) {