Return type of Request::getParameter() method should be mixed

Description

Currently, the docblock for Request::getParameter() suggest the return will be a string: https://github.com/joindin/joindin-api/blob/master/src/inc/Request.php#L191states

However, as the paramter property can be the result of a JSON body (and they are not cast anywhere), then a value could be string, int, bool, and (I think) stdClass.

Suggest the docblock is updated to reflect this.

Activity

Show:

Giorgio Sironi June 29, 2017 at 7:55 PM

Details

Assignee

Reporter

Labels

Components

Priority

Created March 5, 2017 at 1:24 PM
Updated June 29, 2017 at 7:55 PM