src/Viserio/Component/Cookie/CookieJar.php
public function create(
        string $name,
        ?string $value  = null,
        int $second     = 0,
        ?string $path   = null,
        ?string $domain = null,
        bool $secure    = false,
        bool $httpOnly  = true,
        $sameSite       = false
    ): CookieContract {
        [$path, $domain, $secure] = $this->getPathAndDomain($path, $domain, $secure);

        return new SetCookie($name, $value, $second, $path, $domain, $secure, $httpOnly, $sameSite);
    }
public function create(
        string $name,
        ?string $value  = null,
        int $second     = 0,
        ?string $path   = null,
        ?string $domain = null,
        bool $secure    = false,
        bool $httpOnly  = true,
        $sameSite       = false
    ): CookieContract {
        [$path, $domain, $secure] = $this->getPathAndDomain($path, $domain, $secure);

        return new SetCookie($name, $value, $second, $path, $domain, $secure, $httpOnly, $sameSite);
    }
{@inheritdoc}