1
0
Fork 0
mirror of synced 2024-06-29 03:30:34 +12:00

Fix for PHP8 array_push

This commit is contained in:
Eldad Fux 2020-10-27 08:48:19 +02:00
parent e5c5cb0a25
commit cb82657a58

View file

@ -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];