diff --git a/memory b/memory new file mode 100644 index 0000000000..e69de29bb2 diff --git a/phalcon/Http/Request.zep b/phalcon/Http/Request.zep index 501d40f234..e9f3f0e65f 100644 --- a/phalcon/Http/Request.zep +++ b/phalcon/Http/Request.zep @@ -18,6 +18,7 @@ use Phalcon\Http\Message\RequestMethodInterface; use Phalcon\Http\Request\File; use Phalcon\Http\Request\FileInterface; use Phalcon\Http\Request\Exception; +use Phalcon\Support\Helper\Json\Decode; use UnexpectedValueException; use stdClass; @@ -583,7 +584,7 @@ class Request extends AbstractInjectionAware implements RequestInterface, Reques let rawBody = "{}"; } - return json_decode(rawBody, associative); + return (new Decode())->__invoke(rawBody, associative); } /**