src/Viserio/Component/Cookie/AbstractCookieCollector.php
protected static function splitCookiePair(string $string): array
    {
        $pairParts = \explode('=', $string, 2);

        if (\count($pairParts) === 1) {
            $pairParts[1] = '';
        }

        return \array_map(static function ($part) {
            if ($part === null) {
                return '';
            }

            return \urldecode($part);
        }, $pairParts);
    }
protected static function splitCookiePair(string $string): array
    {
        $pairParts = \explode('=', $string, 2);

        if (\count($pairParts) === 1) {
            $pairParts[1] = '';
        }

        return \array_map(static function ($part) {
            if ($part === null) {
                return '';
            }

            return \urldecode($part);
        }, $pairParts);
    }
Split a string to array.

@param string $string

@return array