Skip to content

Commit

Permalink
Merge pull request #16054 from sinbadxiii/issue-16053
Browse files Browse the repository at this point in the history
setcookie() Passing null to parameter #2 ($value) of type string
  • Loading branch information
niden committed Aug 11, 2022
2 parents 73a04d9 + c34802b commit da1b48a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phalcon/Http/Cookie.zep
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit da1b48a

Please sign in to comment.