src/Viserio/Component/Cookie/AbstractCookie.php
protected function appendFormattedNameAndValuePartIfSet(array $cookieStringParts): array
    {
        $name = \urlencode($this->name) . '=';

        if ($this->getValue() === null) {
            $time = Chronos::now()->getTimestamp() - 31536001;

            $cookieStringParts[] .= $name . 'deleted; Expires=' . (new Chronos(\gmdate('D, d-M-Y H:i:s', $time)))->toCookieString();
        } else {
            $cookieStringParts[] .= $name . \urlencode($this->getValue());

            if (null !== $this->getExpiresTime()) {
                $cookieStringParts[] .= 'Expires=' . (new Chronos(\gmdate('D, d-M-Y H:i:s', $this->getExpiresTime())))->toCookieString();
            }
        }

        return $cookieStringParts;
    }
protected function appendFormattedNameAndValuePartIfSet(array $cookieStringParts): array
    {
        $name = \urlencode($this->name) . '=';

        if ($this->getValue() === null) {
            $time = Chronos::now()->getTimestamp() - 31536001;

            $cookieStringParts[] .= $name . 'deleted; Expires=' . (new Chronos(\gmdate('D, d-M-Y H:i:s', $time)))->toCookieString();
        } else {
            $cookieStringParts[] .= $name . \urlencode($this->getValue());

            if (null !== $this->getExpiresTime()) {
                $cookieStringParts[] .= 'Expires=' . (new Chronos(\gmdate('D, d-M-Y H:i:s', $this->getExpiresTime())))->toCookieString();
            }
        }

        return $cookieStringParts;
    }
@param array $cookieStringParts

@return array