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

Array to string conversion on error message with parameters #10

Open
mrk-spyro opened this issue Feb 23, 2024 · 0 comments
Open

Array to string conversion on error message with parameters #10

mrk-spyro opened this issue Feb 23, 2024 · 0 comments

Comments

@mrk-spyro
Copy link

There is an error in line that results in exception if parameters are decoded into an array instead of object

$parameters = (is_object($decodedResponse->parameters)) ? json_encode($decodedResponse->parameters) : $decodedResponse->parameters;

Example endpoint that returns a list of parameters as an array:
DELETE products/attributes/{attribute_code}/options/{option_id}

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