diff --git a/src/Controllers/AbstractApiController.php b/src/Controllers/AbstractApiController.php index cfa252f..4ff37ef 100644 --- a/src/Controllers/AbstractApiController.php +++ b/src/Controllers/AbstractApiController.php @@ -111,7 +111,7 @@ abstract class AbstractApiController break; case $contentType === 'application/json': $body = $this->request->getBody()->buffer(); - $post = \json_decode($body, 1); + $post = \json_decode($body, true); break; default: $body = $this->request->getBody()->buffer();