Skip to content

Commit

Permalink
replace json_decode to Decode in getJsonRawBody
Browse files Browse the repository at this point in the history
  • Loading branch information
sinbadxiii committed Jul 26, 2023
1 parent bb48192 commit fdb33af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Empty file added memory
Empty file.
3 changes: 2 additions & 1 deletion phalcon/Http/Request.zep
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -583,7 +584,7 @@ class Request extends AbstractInjectionAware implements RequestInterface, Reques
let rawBody = "{}";
}

return json_decode(rawBody, associative);
return (new Decode())->__invoke(rawBody, associative);
}

/**
Expand Down

0 comments on commit fdb33af

Please sign in to comment.