We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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":"[email protected]"}
bad call :
updateUser("[email protected]", 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.
The text was updated successfully, but these errors were encountered:
I've solved the problem by modifying function checkMethod in Server.php.
foreach ($refParams as $arg) { $argName = $arg->getName(); if (array_key_exists($argName, $named)) { $params[] = $named[$argName]; unset($named[$argName]); } else { if (!$arg->isOptional()) { $res = false; break; } else { $params[] = $arg->getDefaultValue(); } } }
Hope it helps!
Sorry, something went wrong.
No branches or pull requests
Parameters are ordered by name, but optional parameters not present in request are not handled and the parameters are shifted.
With the function :
request :
bad call :
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.
The text was updated successfully, but these errors were encountered: