Skip to content

Commit

Permalink
correct cookie default arguments to avoid deprecated null assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
raicabogdan committed Sep 26, 2024
1 parent 04edb15 commit 855c085
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions phalcon/Http/Cookie.zep
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions phalcon/Http/Response/Cookies.zep
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
) -> <CookiesInterface> {
var cookie, encryption, container, response;
Expand Down
6 changes: 3 additions & 3 deletions phalcon/Http/Response/CookiesInterface.zep
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
) -> <CookiesInterface>;

Expand Down

0 comments on commit 855c085

Please sign in to comment.