Fix type issues

main
Jordi Boggiano 2 years ago
parent 956d44c339
commit 38efb57ba2
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -30,8 +30,8 @@ class Versions
private $config;
/** @var string */
private $channel;
/** @var array<string, array<int, array{path: string, version: string, min-php: int, eol?: true}>> */
private $versionsData;
/** @var array<string, array<int, array{path: string, version: string, min-php: int, eol?: true}>>|null */
private $versionsData = null;
public function __construct(Config $config, HttpDownloader $httpDownloader)
{
@ -99,7 +99,7 @@ class Versions
*/
private function getVersionsData()
{
if (!$this->versionsData) {
if (null === $this->versionsData) {
if ($this->config->get('disable-tls') === true) {
$protocol = 'http';
} else {

Loading…
Cancel
Save