Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slim's $request->getParsedBody returns array instead of object #48

Open
nohponex opened this issue Sep 28, 2016 · 2 comments
Open

Slim's $request->getParsedBody returns array instead of object #48

nohponex opened this issue Sep 28, 2016 · 2 comments
Milestone

Comments

@nohponex
Copy link
Member

No description provided.

@nohponex nohponex added this to the Release 3.x milestone Sep 28, 2016
@nohponex
Copy link
Member Author

#44

@nohponex
Copy link
Member Author

   /**
     * Retrieve any parameters provided in the request body.
     *
     * If the request Content-Type is either application/x-www-form-urlencoded
     * or multipart/form-data, and the request method is POST, this method MUST
     * return the contents of $_POST.
     *
     * Otherwise, this method may return any results of deserializing
     * the request body content; as parsing returns structured content, the
     * potential types MUST be arrays or objects only. A null value indicates
     * the absence of body content.
     *
     * @return null|array|object The deserialized body parameters, if any.
     *     These will typically be an array or object.
     */
    public function getParsedBody();

http://www.php-fig.org/psr/psr-7/

@nohponex nohponex changed the title $request->getParsedBody returns array instead of object Slim's $request->getParsedBody returns array instead of object Sep 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant