This PR closes #93 by ensuring that we create override values from raw data. There might be cases, where the value is a \Statamic\Fields\Value object instead of a simple value like a string. If we don't use the raw data of the given Value object, we'll end up with the Value object as the raw data of the new Value object. Which leads to unwanted behavior when we later call the value() method on the new Value object.
This PR closes #93 by ensuring that we create override values from raw data. There might be cases, where the value is a
\Statamic\Fields\Value
object instead of a simple value like a string. If we don't use the raw data of the given Value object, we'll end up with the Value object as the raw data of the new Value object. Which leads to unwanted behavior when we later call thevalue()
method on the new Value object.