Skip to content

Commit b64e65f

Browse files
committed
:octocat: phan happy
1 parent f489594 commit b64e65f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/message_helpers.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ function r_rawurlencode($data){
164164
* @return \stdClass|array|bool
165165
*/
166166
function get_json(MessageInterface $message, bool $assoc = null){
167-
$data = json_decode((string)$message->getBody(), $assoc);
167+
$data = json_decode((string)$message->getBody(), $assoc ?? false);
168168

169169
$message->getBody()->rewind();
170170

0 commit comments

Comments
 (0)