diff --git a/src/Package/PHP/Convey/Command/Pecl.php b/src/Package/PHP/Convey/Command/Pecl.php index 23e9b19..2bd7fca 100644 --- a/src/Package/PHP/Convey/Command/Pecl.php +++ b/src/Package/PHP/Convey/Command/Pecl.php @@ -103,13 +103,11 @@ protected function fetch($target) $config = new Config(); $config->merge([ 'config' => [ - 'secure-http' => WebsiteFactory::isTestServer() ? false : true, + 'secure-http' => !WebsiteFactory::getWebsite()->isUnsafe(), ], ]); $downloader = new PECLDownloader($this->io, $config); - if ($downloader !== null) { - $downloader->download($package, $target); - } + $downloader->download($package, $target); unset($package, $downloader); }