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 934ad70 commit 8a2fc2eCopy full SHA for 8a2fc2e
Request/SymfonyRequest.php
@@ -99,7 +99,9 @@ protected function getInput()
99
100
// If it's json, decode it
101
if (stripos($type, '/json') !== false || stripos($type, '+json') !== false) {
102
- return json_decode($this->request->getContent(), true);
+ if (is_array($parsed = json_decode($this->request->getContent(), true))) {
103
+ return $parsed;
104
+ }
105
}
106
107
// Yes, we really do want request->request
0 commit comments