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
- Add failing test for #317 See https://github.com/kreait/firebase-php/issues/317 — committed to kreait/firebase-php by jeromegamez 5 years ago
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()orsendAll()with just one recipient/message? 😅 #shiftingblameThanks 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: