We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 848728d + 8dcace6 commit 735062bCopy full SHA for 735062b
src/Parse/ParseObject.php
@@ -787,12 +787,12 @@ public function _encode()
787
$out[$key] = $value;
788
}
789
foreach ($this->estimatedData as $key => $value) {
790
- if (is_object($value) && $value instanceof ParseObject) {
+ if (is_object($value) && $value instanceof \Parse\Internal\Encodable) {
791
$out[$key] = $value->_encode();
792
} else if (is_array($value)) {
793
$out[$key] = array();
794
foreach ($value as $item) {
795
- if (is_object($item) && $item instanceof ParseObject) {
+ if (is_object($item) && $item instanceof \Parse\Internal\Encodable) {
796
$out[$key][] = $item->_encode();
797
} else {
798
$out[$key][] = $item;
0 commit comments