diff --git a/src/Endpoints/RulesLists.php b/src/Endpoints/RulesLists.php index b019b95..68dbb2f 100755 --- a/src/Endpoints/RulesLists.php +++ b/src/Endpoints/RulesLists.php @@ -76,7 +76,7 @@ class RulesLists implements API $response = $this->adapter->delete('accounts/' . $accountId . '/rules/lists/' . $listId); $this->body = json_decode($response->getBody()); - return $this->body->result; + return $this->body; } public function createListItem(string $accountId, string $listId, array $ip) diff --git a/tests/Endpoints/RulesListsTest.php b/tests/Endpoints/RulesListsTest.php index a4d08b8..54d86e5 100755 --- a/tests/Endpoints/RulesListsTest.php +++ b/tests/Endpoints/RulesListsTest.php @@ -53,7 +53,7 @@ class RulesListsTest extends TestCase $result = $rulesLists->deleteList('01a7362d577a6c3019a474fd6f485823', '2c0fc9fa937b11eaa1b71c4d701ab86e'); $this->assertEquals(true, $result->success); - $this->assertEquals(true, $rulesLists->getBody()->result->success); + $this->assertEquals(true, $rulesLists->getBody()->success); } public function testGetRulesLists()