php-fcm icon indicating copy to clipboard operation
php-fcm copied to clipboard

Some simplifications and code polish

Open Philipp91 opened this issue 2 years ago • 0 comments

See the individual commit messages and diffs.

Breaking changes:

  • ext-json is now declared as a dependency. It was actually a dependency before, but now it's declared, which might break some builds.
  • Request::getBody() was renamed to Request::buildJsonBody(). Most clients won't care, as they don't call this function.
  • FcmClient::send() does not throw GuzzleException anymore, but now wraps it into FcmClientException (same exception type as when the server returns an error).

Philipp91 avatar Nov 27 '22 19:11 Philipp91