mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 01:18:37 +00:00
feat: handle bools
This commit is contained in:
parent
42ae429153
commit
df9e80a962
1 changed files with 2 additions and 0 deletions
|
|
@ -303,6 +303,8 @@ class Client
|
|||
|
||||
if (is_array($value)) {
|
||||
$output += $this->flatten($value, $finalKey); // @todo: handle name collision here if needed
|
||||
} elseif (is_bool($value)) {
|
||||
$output[$finalKey] = $value ? 'true' : 'false';
|
||||
} else {
|
||||
$output[$finalKey] = $value;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue