src/Infrastructure/Config/Settings.php
public function offsetSet($key, $data)
    {
        if (!$this->allow_modification) {
            throw new RuntimeException('Attempting to write to an immutable array');
        }

        if (isset($data) && is_array($data)) {
            $data = new static($data);
        }

        return parent::offsetSet($key, $data);
    }
public function offsetSet($key, $data)
    {
        if (!$this->allow_modification) {
            throw new RuntimeException('Attempting to write to an immutable array');
        }

        if (isset($data) && is_array($data)) {
            $data = new static($data);
        }

        return parent::offsetSet($key, $data);
    }
public function offsetSet ( $ key , $ data ) { if ( ! $ this -> allow_modification ) { throw new RuntimeException ( 'Attempting to write to an immutable array' ) ; } if ( isset ( $ data ) && is_array ( $ data ) ) { $ data = new static ( $ data ) ; } return parent :: offsetSet ( $ key , $ data ) ; }
Sets the given data on the specified key.

@param mixed $key name of key to set
@param mixed $data data to set for the given key

@return void

@throws RuntimeException on write attempt when modification is forbidden
Sets the given data on the specified key .