We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f489594 commit b64e65fCopy full SHA for b64e65f
src/message_helpers.php
@@ -164,7 +164,7 @@ function r_rawurlencode($data){
164
* @return \stdClass|array|bool
165
*/
166
function get_json(MessageInterface $message, bool $assoc = null){
167
- $data = json_decode((string)$message->getBody(), $assoc);
+ $data = json_decode((string)$message->getBody(), $assoc ?? false);
168
169
$message->getBody()->rewind();
170
0 commit comments