src/Encryption/EncryptedItemDecorator.php
private function transform(array $item)
    {
        $value = static::jsonDeArmor($item['value']);

        if ($item['type'] === 'object' || $item['type'] === 'array') {
            return unserialize($value);
        }

        settype($value, $item['type']);

        return $value;
    }
private function transform(array $item)
    {
        $value = static::jsonDeArmor($item['value']);

        if ($item['type'] === 'object' || $item['type'] === 'array') {
            return unserialize($value);
        }

        settype($value, $item['type']);

        return $value;
    }
private function transform ( array $ item ) { $ value = static :: jsonDeArmor ( $ item [ 'value' ] ) ; if ( $ item [ 'type' ] === 'object' || $ item [ 'type' ] === 'array' ) { return unserialize ( $ value ) ; } settype ( $ value , $ item [ 'type' ] ) ; return $ value ; }
Transform value back to it original type.

@param array $item

@return mixed
Transform value back to it original type .