Explorar o código

Removed type check on ArchiveManager

MakiCode %!s(int64=10) %!d(string=hai) anos
pai
achega
fefc106ef6
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  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) {