CristalTeam / php-api-wrapper

:rainbow: Work with APIs like with Laravel Eloquent or Doctrine (no longer a dream)
MIT License
117 stars 32 forks source link

ApiException : trying to access array offset on value of type null #44

Open brutalVinz opened 1 year ago

brutalVinz commented 1 year ago

Hi, When trying to update data via API i got this error:

In ApiException.php line 29: Trying to access array offset on value of type null

public function getResponse($key = null) { print_r($this->response); return $key ? $this->response[$key] : $this->response; }

$key value is "message" but $this->response is null