From 55b9ee03ef6bdd838716f60423777802b7bc1bbc Mon Sep 17 00:00:00 2001 From: Sebastien Ray Date: Fri, 4 Oct 2019 11:40:05 +0200 Subject: [PATCH] Fix deprecated use of cookie User Deprecated: The default value of the "$secure" and "$samesite" arguments of "Symfony\Component\HttpFoundation\Cookie::__construct"'s constructor will respectively change from "false" to "null" and from "null" to "lax" in Symfony 5.0, you should define their values explicitly or use "Cookie::create()" instead. --- Helper/DeviceView.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Helper/DeviceView.php b/Helper/DeviceView.php index e6b1c46..dff4f4b 100644 --- a/Helper/DeviceView.php +++ b/Helper/DeviceView.php @@ -466,7 +466,7 @@ protected function createCookie($value) $expire = new \Datetime(self::COOKIE_EXPIRE_DATETIME_MODIFIER_DEFAULT); } - return new Cookie( + return Cookie::create( $this->getCookieKey(), $value, $expire,