Fix deprecation error in PHP 8.x when path or domain is null in setcookie()

This commit is contained in:
Kijin Sung 2023-06-16 15:34:48 +09:00
parent 22abeb7a88
commit 180ed429cf
4 changed files with 6 additions and 6 deletions

View file

@ -1261,7 +1261,7 @@ class Session
* @param string $domain (optional)
* @return bool
*/
protected static function _unsetCookie($name, $path = null, $domain = null)
protected static function _unsetCookie($name, $path = '', $domain = '')
{
$result = setcookie($name, 'deleted', time() - (86400 * 366), $path, $domain, false, false);
if ($result)