From 1be0e794d93a8c372448d2c97794884df693de3f Mon Sep 17 00:00:00 2001 From: Pezhvak Date: Tue, 3 Dec 2019 17:29:32 +0330 Subject: [PATCH] Update DNS.php fixing php 7.4 deprecation of curly braces --- src/Endpoints/DNS.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Endpoints/DNS.php b/src/Endpoints/DNS.php index 65dc4a4..c3609e9 100644 --- a/src/Endpoints/DNS.php +++ b/src/Endpoints/DNS.php @@ -128,8 +128,8 @@ class DNS implements API public function getRecordID(string $zoneID, string $type = '', string $name = ''): string { $records = $this->listRecords($zoneID, $type, $name); - if (isset($records->result{0}->id)) { - return $records->result{0}->id; + if (isset($records->result[0]->id)) { + return $records->result[0]->id; } return false; }