openfoodfacts / openfoodfacts-php

PHP wrapper for Open Food Facts
https://packagist.org/packages/openfoodfacts/openfoodfacts-php
MIT License
58 stars 34 forks source link

Fix failed tests #27

Closed Dwarfex closed 3 years ago

Dwarfex commented 3 years ago

It seems as if the API response has changed.

As seen in the test executions an index in collections ('page' ) seems to be missing (https://travis-ci.org/github/openfoodfacts/openfoodfacts-php/jobs/735694395)

https://github.com/openfoodfacts/openfoodfacts-php/blob/49808014d335af6dbac3162effc85e4f460d9e39/src/Collection.php#L50

sebrave commented 3 years ago

https://github.com/openfoodfacts/openfoodfacts-php/pull/28 Looks like the ingredients API endpoint changed