From ec8ae6e03bddc985163f3e73e8d4d1e5a525fedc Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Thu, 29 Dec 2016 11:17:27 +0100 Subject: [PATCH] Remove unnecessary method call This is already the default value in the base SetCookie class. --- src/Http/CookieFactory.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Http/CookieFactory.php b/src/Http/CookieFactory.php index b966cb64d..49899c6bf 100644 --- a/src/Http/CookieFactory.php +++ b/src/Http/CookieFactory.php @@ -49,7 +49,6 @@ class CookieFactory ->withMaxAge($maxAge) ->withPath(array_get($url, 'path') ?: '/') ->withSecure(array_get($url, 'scheme') === 'https') - ->withHttpOnly(true) - ->withDomain(null); + ->withHttpOnly(true); } }