push
This commit is contained in:
parent
b29504655d
commit
a1f8b897af
1 changed files with 3 additions and 0 deletions
|
@ -12,6 +12,9 @@ trait FlatArrayTrait
|
|||
if ($arr !== null && !is_array($arr)) {
|
||||
return;
|
||||
}
|
||||
if ($arr === null) {
|
||||
$arr = [];
|
||||
}
|
||||
$arr[] = $value;
|
||||
$this->set($name, $arr);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue