diff --git a/Message/RequestAbstract.php b/Message/RequestAbstract.php index f6b14bfb8..b9abc14ef 100755 --- a/Message/RequestAbstract.php +++ b/Message/RequestAbstract.php @@ -238,7 +238,11 @@ abstract class RequestAbstract implements MessageInterface $json = \json_decode($this->data[$key], true); /** @phpstan-ignore-line */ - return \is_array($json) ? $json : []; + if ($json === null) { + $json = $this->data[$key]; + } + + return \is_array($json) ? $json : [$json]; } /**