mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Fix for PHP8 array_push
This commit is contained in:
parent
e5c5cb0a25
commit
cb82657a58
1 changed files with 2 additions and 1 deletions
|
|
@ -110,7 +110,8 @@ class Document extends ArrayObject
|
|||
break;
|
||||
case self::SET_TYPE_APPEND:
|
||||
$this[$key] = (!isset($this[$key]) || !\is_array($this[$key])) ? [] : $this[$key];
|
||||
\array_push($this[$key], $value);
|
||||
// \array_push($this[$key], $value);
|
||||
$this[$key][count($this[$key])] = $value;
|
||||
break;
|
||||
case self::SET_TYPE_PREPEND:
|
||||
$this[$key] = (!isset($this[$key]) || !\is_array($this[$key])) ? [] : $this[$key];
|
||||
|
|
|
|||
Loading…
Reference in a new issue