src/Viserio/Bridge/Twig/NodeVisitor/Scope.php
public function set(string $key, $value)
    {
        if ($this->left) {
            throw new \LogicException('Left scope is not mutable.');
        }

        $this->data[$key] = $value;

        return $this;
    }
public function set(string $key, $value)
    {
        if ($this->left) {
            throw new \LogicException('Left scope is not mutable.');
        }

        $this->data[$key] = $value;

        return $this;
    }
Stores data into current scope.

@param string $key
@param mixed  $value

@throws \LogicException

@return $this