This commit is contained in:
Joby Elliott 2018-08-30 12:40:42 -06:00
parent b29504655d
commit a1f8b897af

View file

@ -12,6 +12,9 @@ trait FlatArrayTrait
if ($arr !== null && !is_array($arr)) {
return;
}
if ($arr === null) {
$arr = [];
}
$arr[] = $value;
$this->set($name, $arr);
}