This commit is contained in:
Daniil Gentili 2024-06-30 16:08:55 +02:00
parent 0580754d62
commit 781766f849

View File

@ -111,7 +111,7 @@ abstract class AbstractApiController
break; break;
case $contentType === 'application/json': case $contentType === 'application/json':
$body = $this->request->getBody()->buffer(); $body = $this->request->getBody()->buffer();
$post = \json_decode($body, 1); $post = \json_decode($body, true);
break; break;
default: default:
$body = $this->request->getBody()->buffer(); $body = $this->request->getBody()->buffer();