Skip to content

Commit c4f15b8

Browse files
committed
Revert commit d42b68c
1 parent 99449dc commit c4f15b8

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/Json/Repository.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ class Repository extends AbstractClass
2929
*/
3030
protected $options;
3131

32-
/**
33-
* @var bool
34-
*/
35-
protected $allowSslDowngrade;
36-
3732
/**
3833
* @var ComposerJson|null
3934
*/
@@ -49,7 +44,6 @@ public function __construct(array $data = [])
4944
$this->type = (array_key_exists('type', $data) ? $data['type'] : '');
5045
$this->url = (array_key_exists('url', $data) ? $data['url'] : '');
5146
$this->options = (array_key_exists('options', $data) ? $data['options'] : []);
52-
$this->allowSslDowngrade = (array_key_exists('allow_ssl_downgrade', $data) ? $data['allow_ssl_downgrade'] : false);
5347

5448
$this->package = (array_key_exists('package', $data) ? new ComposerJson($data['package']) : null);
5549
}
@@ -81,16 +75,6 @@ public function getOptions() : array
8175
return $this->options;
8276
}
8377

84-
/**
85-
* Get if ssl may be downgraded for this repository.
86-
* @see https://github.com/composer/composer/blob/0fe200d6d950b0774688713be3153bb410eb70b8/src/Composer/Repository/ComposerRepository.php#L87-L89
87-
* @return bool
88-
*/
89-
public function isSslDowngradeAllowed() : bool
90-
{
91-
return $this->allowSslDowngrade;
92-
}
93-
9478
/**
9579
* Gets the parsed "package" key of the repository.
9680
* @return ComposerJson|null

0 commit comments

Comments
 (0)