diff --git a/src/Factory/CompressionManagerFactory.php b/src/Factory/CompressionManagerFactory.php index 686c8085..78236781 100644 --- a/src/Factory/CompressionManagerFactory.php +++ b/src/Factory/CompressionManagerFactory.php @@ -27,7 +27,7 @@ public static function createCompressionManager(array $methods) $compression_manager = new CompressionManager(); foreach ($methods as $method) { - if ($methods instanceof CompressionInterface) { + if ($method instanceof CompressionInterface) { $compression_manager->addCompressionAlgorithm($method); } else { Assertion::string($method, 'Bad argument: must be a list with either method names (string) or instances of CompressionInterface.');