From 9be60d63d4b9a56295f19b0d0c70b87ca6e58f79 Mon Sep 17 00:00:00 2001 From: dylan_DPC Date: Fri, 6 Oct 2017 02:48:23 +0530 Subject: [PATCH 1/2] make method signature in contract matches implementation --- src/Illuminate/Contracts/Cookie/Factory.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Illuminate/Contracts/Cookie/Factory.php b/src/Illuminate/Contracts/Cookie/Factory.php index 6124397658ea..dfe62e3f9c5b 100644 --- a/src/Illuminate/Contracts/Cookie/Factory.php +++ b/src/Illuminate/Contracts/Cookie/Factory.php @@ -14,9 +14,11 @@ interface Factory * @param string $domain * @param bool $secure * @param bool $httpOnly + * @param bool $raw + * @param string|null $sameSite * @return \Symfony\Component\HttpFoundation\Cookie */ - public function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = false, $httpOnly = true); + public function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = false, $httpOnly = true, $raw = false, $sameSite = null); /** * Create a cookie that lasts "forever" (five years). From f46f6c0abb0d91aca3717e5c7382cc368e14a895 Mon Sep 17 00:00:00 2001 From: dylan_DPC Date: Fri, 6 Oct 2017 17:28:00 +0530 Subject: [PATCH 2/2] forever() method matched to implementation --- src/Illuminate/Contracts/Cookie/Factory.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Illuminate/Contracts/Cookie/Factory.php b/src/Illuminate/Contracts/Cookie/Factory.php index dfe62e3f9c5b..0cf83ea7f08a 100644 --- a/src/Illuminate/Contracts/Cookie/Factory.php +++ b/src/Illuminate/Contracts/Cookie/Factory.php @@ -29,9 +29,11 @@ public function make($name, $value, $minutes = 0, $path = null, $domain = null, * @param string $domain * @param bool $secure * @param bool $httpOnly + * @param bool $raw + * @param string|null $sameSite * @return \Symfony\Component\HttpFoundation\Cookie */ - public function forever($name, $value, $path = null, $domain = null, $secure = false, $httpOnly = true); + public function forever($name, $value, $path = null, $domain = null, $secure = false, $httpOnly = true, $raw = false, $sameSite = null); /** * Expire the given cookie.