From c4f15b82520a9a1780b3fdd0fde91cbc0f3a1add Mon Sep 17 00:00:00 2001 From: antonkomarev Date: Thu, 12 Sep 2019 22:26:39 +0300 Subject: [PATCH] Revert commit d42b68c560bf561298547bc1079b3141c87f148a --- src/Json/Repository.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/Json/Repository.php b/src/Json/Repository.php index 5d392f2..9f9fa8d 100644 --- a/src/Json/Repository.php +++ b/src/Json/Repository.php @@ -29,11 +29,6 @@ class Repository extends AbstractClass */ protected $options; - /** - * @var bool - */ - protected $allowSslDowngrade; - /** * @var ComposerJson|null */ @@ -49,7 +44,6 @@ public function __construct(array $data = []) $this->type = (array_key_exists('type', $data) ? $data['type'] : ''); $this->url = (array_key_exists('url', $data) ? $data['url'] : ''); $this->options = (array_key_exists('options', $data) ? $data['options'] : []); - $this->allowSslDowngrade = (array_key_exists('allow_ssl_downgrade', $data) ? $data['allow_ssl_downgrade'] : false); $this->package = (array_key_exists('package', $data) ? new ComposerJson($data['package']) : null); } @@ -81,16 +75,6 @@ public function getOptions() : array return $this->options; } - /** - * Get if ssl may be downgraded for this repository. - * @see https://github.com/composer/composer/blob/0fe200d6d950b0774688713be3153bb410eb70b8/src/Composer/Repository/ComposerRepository.php#L87-L89 - * @return bool - */ - public function isSslDowngradeAllowed() : bool - { - return $this->allowSslDowngrade; - } - /** * Gets the parsed "package" key of the repository. * @return ComposerJson|null