From 855c0855d80f4272eeeff0f7c3442ccbe94c4017 Mon Sep 17 00:00:00 2001 From: Vasile Bogdan Raica Date: Thu, 26 Sep 2024 23:18:13 +0300 Subject: [PATCH] correct cookie default arguments to avoid deprecated null assignments --- phalcon/Http/Cookie.zep | 6 +++--- phalcon/Http/Response/Cookies.zep | 6 +++--- phalcon/Http/Response/CookiesInterface.zep | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/phalcon/Http/Cookie.zep b/phalcon/Http/Cookie.zep index 67b3ed51083..d2078f8f5e2 100644 --- a/phalcon/Http/Cookie.zep +++ b/phalcon/Http/Cookie.zep @@ -100,9 +100,9 @@ class Cookie extends AbstractInjectionAware implements CookieInterface var value = null, int expire = 0, string path = "/", - bool secure = null, - string domain = null, - bool httpOnly = null, + bool secure = false, + string domain = "", + bool httpOnly = false, array options = [] ) { let this->name = name, diff --git a/phalcon/Http/Response/Cookies.zep b/phalcon/Http/Response/Cookies.zep index 07c53bc0589..caede6f058f 100644 --- a/phalcon/Http/Response/Cookies.zep +++ b/phalcon/Http/Response/Cookies.zep @@ -251,9 +251,9 @@ class Cookies extends AbstractInjectionAware implements CookiesInterface var value = null, int expire = 0, string path = "/", - bool secure = null, - string! domain = null, - bool httpOnly = null, + bool secure = false, + string! domain = "", + bool httpOnly = false, array options = [] ) -> { var cookie, encryption, container, response; diff --git a/phalcon/Http/Response/CookiesInterface.zep b/phalcon/Http/Response/CookiesInterface.zep index 67f2d67b7c3..ee32e16c35f 100644 --- a/phalcon/Http/Response/CookiesInterface.zep +++ b/phalcon/Http/Response/CookiesInterface.zep @@ -58,9 +58,9 @@ interface CookiesInterface var value = null, int expire = 0, string path = "/", - bool secure = null, - string! domain = null, - bool httpOnly = null, + bool secure = false, + string! domain = "", + bool httpOnly = false, array options = [] ) -> ;