From c34802b37b7459ed2ab794b8cb65260e5e74c12b Mon Sep 17 00:00:00 2001 From: sinbad Date: Thu, 11 Aug 2022 11:13:33 +0500 Subject: [PATCH] setcookie() Passing null to parameter #2 ($value) of type string is deprecated --- phalcon/Http/Cookie.zep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phalcon/Http/Cookie.zep b/phalcon/Http/Cookie.zep index a09beef871b..2009e2d660b 100644 --- a/phalcon/Http/Cookie.zep +++ b/phalcon/Http/Cookie.zep @@ -157,7 +157,7 @@ class Cookie extends AbstractInjectionAware implements CookieInterface options["secure"] = this->getArrVal(options, "secure", secure), options["httponly"] = this->getArrVal(options, "httponly", httpOnly); - setcookie(name, null, options); + setcookie(name, "", options); } /**