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);
    }