소스 검색

Removed type check on ArchiveManager

MakiCode 10 년 전
부모
커밋
fefc106ef6
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      src/Composer/Package/Archiver/ArchiveManager.php

+ 1 - 4
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) {