When you have an empty array in your Firestore, and you try to read that with firestore-php, your will encounter an undefined index error. This pull request fixes this by checking if the array is empty, and if so, returns the empty array instead of trying to iterate over it.
When you have an empty array in your Firestore, and you try to read that with firestore-php, your will encounter an undefined index error. This pull request fixes this by checking if the array is empty, and if so, returns the empty array instead of trying to iterate over it.