src/ORM/FieldType/MultiValueField.php
protected function unserializeData($data)
    {
        $value = null;
        // if we're not deserialised yet, do so
        if (is_string($data) && strlen($data) > 1) {
            // are we json encoded?
            if ($data{1} === ':') {
                $value = \unserialize($data);
            } else {
                $value = \json_decode($data, true);
            }
        }
        return $value;
    }
protected function unserializeData($data)
    {
        $value = null;
        // if we're not deserialised yet, do so
        if (is_string($data) && strlen($data) > 1) {
            // are we json encoded?
            if ($data{1} === ':') {
                $value = \unserialize($data);
            } else {
                $value = \json_decode($data, true);
            }
        }
        return $value;
    }
protected function unserializeData ( $ data ) { $ value = null ; // if we're not deserialised yet, do so if ( is_string ( $ data ) && strlen ( $ data ) > 1 ) { // are we json encoded? if ( $ data { 1 } === ':' ) { $ value = \ unserialize ( $ data ) ; } else { $ value = \ json_decode ( $ data , true ) ; } } return $ value ; }
Unserialises data, depending on new or old format

@param string $data

@return array
Unserialises data depending on new or old format