src/Common/ShippingQuoteBag.php
public function offsetSet($key, $value)
    {
        if(is_array($value)) {
            $value = new ShippingQuote($value);
        }
        parent::offsetSet($key, $value);
    }
public function offsetSet($key, $value)
    {
        if(is_array($value)) {
            $value = new ShippingQuote($value);
        }
        parent::offsetSet($key, $value);
    }
Set the item at a given offset.

@param  mixed  $key
@param  mixed  $value
@return void