lib/Koine/ArrayReference.php
public function offsetSet($key, $value)
    {
        if ($key !== null) {
            $this->data[$key] = $value;
        } else {
            $this->data[] = $value;
        }

        return $this;
    }
public function offsetSet($key, $value)
    {
        if ($key !== null) {
            $this->data[$key] = $value;
        } else {
            $this->data[] = $value;
        }

        return $this;
    }
public function offsetSet ( $ key , $ value ) { if ( $ key !== null ) { $ this -> data [ $ key ] = $ value ; } else { $ this -> data [ ] = $ value ; } return $ this ; }
Sets the value
ArrayAccess implementation

@param mixed $key
@param mixed $value
Sets the value ArrayAccess implementation