Skip to content

make less un-useful noise with bad responses #388

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

Closed
wants to merge 2 commits into from
Closed

make less un-useful noise with bad responses #388

wants to merge 2 commits into from

Conversation

mtopolski
Copy link

If ParseClient::_request() gets a bad response and self::$enableCurlExceptions is not enabled when ParseQuery::find() runs it creates PHP warnings because it's trying to foreach a bool. This should help prevent some non useful noise.

@montymxb montymxb self-assigned this Feb 23, 2018
Copy link
Contributor

@montymxb montymxb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mtopolski the CI failure looks unrelated, I'll handle that seperately of this PR.

Regarding this addition, the single change looks good 👍 . My one nit is if you can elaborate on a repeatable case that causes this. Assuming it's straightforward to recreate, I would want to have a single test added to enforce this behavior on bad requests w/ curl exceptions disabled. You can add the necessary test case here.

dplewis added a commit to dplewis/parse-php-sdk that referenced this pull request Dec 4, 2018
dplewis added a commit that referenced this pull request Dec 4, 2018
@dplewis
Copy link
Member

dplewis commented Dec 4, 2018

Superced by #425

Thanks @mtopolski for starting on the PR🙏

@parse-github-assistant
Copy link

The label type:feature cannot be used here.

@mtopolski mtopolski deleted the mt-less-noise branch December 7, 2021 18:24
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

Successfully merging this pull request may close these issues.

4 participants