Skip to content

Optionals parameters shifted if missing in request #10

@vtexier

Description

@vtexier

Parameters are ordered by name, but optional parameters not present in request are not handled and the parameters are shifted.

With the function :

updateUser($password = null, $email = null, $receiveEmail = null)

request :

"params":{"receiveEmail":false, "email":"test@domain.net"}

bad call :

updateUser("test@domain.net", false)

The server ordered well the parameters, but miss the first optional one and call the function with the list receive.

Anyway, thanks for this great bundle,
Vincent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions