algolia / algoliasearch-client-php

⚡️ A fully-featured and blazing-fast PHP API client to interact with Algolia.
https://www.algolia.com/doc/api-client/php/getting-started/
MIT License
671 stars 116 forks source link

Corrected saveObjects call example #702

Closed MarcBrillault closed 2 years ago

MarcBrillault commented 2 years ago
Q A
Bug fix? no
New feature? no
BC breaks? no
Related Issue Fixes no existing issue
Need Doc update no

Describe your change

The provided example used a single dimensional array as an argument for the saveObjects() method. As saveObjects saves an array of objects, it generated an error. I updated the example to use a single saveObject() method, which I find easier to understand as a beginner than a two-dimensional array argument for saveObjects()