mirror of
https://github.com/kristuff/abuseipdb
synced 2025-08-14 10:46:52 -07:00
parent
37b0a2eaa9
commit
c4b5c65598
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ class ApiResponse
|
|||
*/
|
||||
public function errors(): array
|
||||
{
|
||||
return ($this->decodedResponse && $this->decodedResponse->errors) ? $this->decodedResponse->errors : [];
|
||||
return ($this->decodedResponse && property_exists($this->decodedResponse, 'errors')) ? $this->decodedResponse->errors : [];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue