src/Forms/MultiSelectField.php
protected function stringDecode($value)
    {
        // Handle empty case
        if (empty($value)) {
            return array();
        }

        // If json deserialisation fails, then fallover to legacy format
        $result = json_decode($value, true);
        if ($result !== false) {
            return $result;
        }

        throw new \InvalidArgumentException("Invalid string encoded value for multi select field");
    }
protected function stringDecode($value)
    {
        // Handle empty case
        if (empty($value)) {
            return array();
        }

        // If json deserialisation fails, then fallover to legacy format
        $result = json_decode($value, true);
        if ($result !== false) {
            return $result;
        }

        throw new \InvalidArgumentException("Invalid string encoded value for multi select field");
    }
protected function stringDecode ( $ value ) { // Handle empty case if ( empty ( $ value ) ) { return array ( ) ; } // If json deserialisation fails, then fallover to legacy format $ result = json_decode ( $ value , true ) ; if ( $ result !== false ) { return $ result ; } throw new \ InvalidArgumentException ( "Invalid string encoded value for multi select field" ) ; }
Extract a string value into an array of values

@param string $value
@return array
Extract a string value into an array of values