Skip to content

Docblock to post() is too specific (array) #69

@olleharstedt

Description

@olleharstedt

Docblock to post():

    /**
     * Make a post request with optional post data.
     *
     * @param string $url  The url to make the post request
     * @param array  $data Post data to pass to the url
     * @param boolean $asJson Whether the data should be passed as json or not. {@insce 2.2.1}
     * @return self
     */

but then preparePayload accepts

    /**
     * @param array|object|string $data
     */

for $data. Can we update post() with this signature too? Right now, Psalm shows an error because of it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions