ahsankhatri / firestore-php

Firestore PHP Client (without gRPC extension)
MIT License
62 stars 57 forks source link

Increase maximum JSON decode depth #10

Closed wz-gel closed 4 years ago

wz-gel commented 5 years ago

The parameter JSON_FORCE_OBJECT was mistakenly applied to json_decode as the 3rd parameter (depth), which caused the maximum depth to be set to 16.

This caused requests with deep documents to fail to upload to Firestore.

Removing this argument, thus restoring to the default 512, solves the issue.