parse-community / parse-php-sdk

The PHP SDK for Parse Platform
https://parseplatform.org/
Other
811 stars 346 forks source link

don't foreach bad responses #387

Closed mtopolski closed 6 years ago

mtopolski commented 6 years ago

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 commented 6 years ago

@mtopolski Nice catch! This looks good at first glance, but I want to give this a run over in a local environment first to verify. Ignore, I see the updated PR.