Skip to content

Commit 83f69b5

Browse files
Fix JSON encoding of nested lists (#699)
1 parent 52aaef0 commit 83f69b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Firebase/Auth/ApiClient.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function setCustomUserClaims(string $uid, array $claims): ResponseInterfa
6262
{
6363
return $this->requestApi('https://identitytoolkit.googleapis.com/v1/accounts:update', [
6464
'localId' => $uid,
65-
'customAttributes' => JSON::encode($claims, JSON_FORCE_OBJECT),
65+
'customAttributes' => JSON::encode((object) $claims),
6666
]);
6767
}
6868

0 commit comments

Comments
 (0)