Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Commit 098a853

Browse files
committed
🐛 fix setcookie(): Passing null to parameter #2 ($value) of type string is deprecated
Signed-off-by: otengkwame <[email protected]>
1 parent e28f2a0 commit 098a853

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

framework/libraries/Session/Session_driver.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ public function php5_validate_id()
126126
}
127127
}
128128

129+
protected function validateSessionId($argument)
130+
{
131+
}
132+
129133
// ------------------------------------------------------------------------
130134

131135
/**
@@ -150,7 +154,7 @@ protected function _cookie_destroy()
150154

151155
return setcookie(
152156
$this->_config['cookie_name'],
153-
null,
157+
'',
154158
[
155159
'expires' => 1,
156160
'path' => $this->_config['cookie_path'],

0 commit comments

Comments
 (0)