From 0702ba475d861eda6fcf7511bee21f319cca70d0 Mon Sep 17 00:00:00 2001 From: Evert Harmeling Date: Wed, 27 May 2020 20:29:38 +0200 Subject: [PATCH] Fix deprecated use of Cookie Fixes the deprecation warning: ``` 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 fb6e02f..e90959f 100644 --- a/Helper/DeviceView.php +++ b/Helper/DeviceView.php @@ -518,7 +518,7 @@ protected function createCookie($value) $expire = new \Datetime(self::COOKIE_EXPIRE_DATETIME_MODIFIER_DEFAULT); } - return new Cookie( + return Cookie::create( $this->getCookieKey(), $value, $expire,