firebase-php: Call to undefined method GuzzleHttp\Psr7\Response::subResponses()

Hello, can some one help me to figure out what is need to be done, don’t have a clue… I’m sending $sendReport = $messaging->sendAll($messages); and got the push on my phone, but instead of report got this: Call to undefined method GuzzleHttp\Psr7\Response::subResponses() in /vendor/kreait/firebase-php/src/Firebase/Messaging.php 111: return MulticastSendReport::fromRequestsAndResponses($request->subRequests(), $response->subResponses());

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (8 by maintainers)

Commits related to this issue

Most upvoted comments

Wonderful! I’m happy to announce that 4.31.0 has just been released 🎉

So… now that this is handled… why do you use sendMulticast() or sendAll() with just one recipient/message? 😅 #shiftingblame

Thanks to you both! I‘ll check and get back to you once I‘ve found something out (or have further questions 😅)

Me too, but I have a couple of thoughts on this matter. This error occurs only when inside the messages array lies only one element/message. Hope it helps. Sorry, didn’t say right away, a lot of work

чт, 22 авг. 2019 г., 16:16 Damien Harper notifications@github.com:

`dev-workaround doesn’t fix the issue for me

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kreait/firebase-php/issues/317?email_source=notifications&email_token=ABZ42UOUEVS6FOKY3B67WFDQF2GRFA5CNFSM4INZZSR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD45BTJA#issuecomment-523901348, or mute the thread https://github.com/notifications/unsubscribe-auth/ABZ42UN6TK7QXPP5EIKY3H3QF2GRFANCNFSM4INZZSRQ .