From 781766f849e1081b4bba969ab7a0b54f5e4cc002 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sun, 30 Jun 2024 16:08:55 +0200 Subject: [PATCH] cs-fix --- src/Controllers/AbstractApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();