src/Bag.php
public function &offsetGet($offset)
    {
        // Returning values by reference is deprecated, but we have no way of knowing here.
        //return $this->get($offset);

        $result = null;
        if (isset($this->items[$offset])) {
            $result = &$this->items[$offset];
        }

        return $result;
    }
public function &offsetGet($offset)
    {
        // Returning values by reference is deprecated, but we have no way of knowing here.
        //return $this->get($offset);

        $result = null;
        if (isset($this->items[$offset])) {
            $result = &$this->items[$offset];
        }

        return $result;
    }
Don't call directly. Used for ArrayAccess.

@internal

@inheritdoc