Another null value fix

This commit is contained in:
Joby Elliott 2019-03-07 09:07:05 -07:00
parent 171e32fc18
commit 5fe55c2c0d

View file

@ -97,6 +97,10 @@ class JSON extends AbstractDataTransformer implements \ArrayAccess, \Iterator
public function offsetSet($offset, $value)
{
//do nothing for null values
if ($value === null) {
return;
}
//set offset
if (is_null($offset)) {
$this->arrayAccessData[] = $value;