Merge pull request #114 from Pezhvak/patch-1

Fixing fatal error in PHP 7.4
This commit is contained in:
Junade
2020-02-03 17:21:31 +00:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -128,8 +128,8 @@ class DNS implements API
public function getRecordID(string $zoneID, string $type = '', string $name = ''): string public function getRecordID(string $zoneID, string $type = '', string $name = ''): string
{ {
$records = $this->listRecords($zoneID, $type, $name); $records = $this->listRecords($zoneID, $type, $name);
if (isset($records->result{0}->id)) { if (isset($records->result[0]->id)) {
return $records->result{0}->id; return $records->result[0]->id;
} }
return false; return false;
} }

View File

@@ -38,7 +38,7 @@ class SSLTest extends TestCase
$result = $sslMock->getSSLVerificationStatus('c2547eb745079dac9320b638f5e225cf483cc5cfdda41'); $result = $sslMock->getSSLVerificationStatus('c2547eb745079dac9320b638f5e225cf483cc5cfdda41');
$this->assertObjectHasAttribute('result', $result); $this->assertObjectHasAttribute('result', $result);
$this->assertEquals('active', $result->result{0}->certificate_status); $this->assertEquals('active', $result->result[0]->certificate_status);
} }
public function testGetHTTPSRedirectSetting() public function testGetHTTPSRedirectSetting()