mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix for PHP8 array_push
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user