src/Viserio/Component/Cookie/AbstractCookie.php
public function withDomain(string $domain = null): CookieContract
    {
        $new         = clone $this;
        $new->domain = $this->normalizeDomain($domain);

        return $new;
    }
public function withDomain(string $domain = null): CookieContract
    {
        $new         = clone $this;
        $new->domain = $this->normalizeDomain($domain);

        return $new;
    }
{@inheritdoc}