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

return empty array in case that json_decode returns not an array. #6

Conversation

dominikmank
Copy link
Contributor

currently we are using the AbstractClient for a subscription implementation. There is as example the following API https://developer.paypal.com/docs/api/subscriptions/v1/#subscriptions_cancel wich returns a "204 - no content" result. This will fail with the current implementation because the strict check throws a type error.

Since i don't want to catch a TypeError the fix could be like in this pull request.

I didn't find any tests regarding this, so i didn't wrote anything

@shopwareBot
Copy link

Hello,

thank you for creating this pull request.
I have opened an issue on our Issue Tracker for you. See the issue link: https://issues.shopware.com/issues/PT-11982

Please use this issue to track the state of your pull request.

@mitelg
Copy link
Member

mitelg commented Aug 7, 2020

thanks for your contribution @dominikmank 👍 🎉 💙

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants