netvlies/bol-openapi-php-sdk — pull request #2 by eriwin (2013-08-08 07:09:48+00:00)
Title: Fixed issue with warning Node no longer exists when offers are not prese...

The following call to the Bol.com API returned a response with a result which contained no offers.

/openapi/services/rest/catalog/v3/searchresults?offset=0&nrProducts=5&sortingAscending=true&includeProducts=true&includeCategories=true&includeRefinements=true&term=hermans

This resulted in a PHP warning in the createOffers method.

Warning: BolOpenApi\Factory\ModelFactory::createOffers() [bolopenapi\factory\modelfactory.createoffers]: Node no longer exists in /home/vagrant/vhosts/wordpress/wp-content/plugins/bolcom-partnerprogramma-wordpress-plugin/vendor/netvlies/bol-openapi-php-sdk/src/BolOpenApi/Factory/ModelFactory.php on line 205

I built in a check to prevent this warning.