Another null value fix
This commit is contained in:
parent
171e32fc18
commit
5fe55c2c0d
1 changed files with 4 additions and 0 deletions
|
@ -97,6 +97,10 @@ class JSON extends AbstractDataTransformer implements \ArrayAccess, \Iterator
|
||||||
|
|
||||||
public function offsetSet($offset, $value)
|
public function offsetSet($offset, $value)
|
||||||
{
|
{
|
||||||
|
//do nothing for null values
|
||||||
|
if ($value === null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
//set offset
|
//set offset
|
||||||
if (is_null($offset)) {
|
if (is_null($offset)) {
|
||||||
$this->arrayAccessData[] = $value;
|
$this->arrayAccessData[] = $value;
|
||||||
|
|
Loading…
Reference in a new issue