Skip to content

Commit 31b10d7

Browse files
committed
Session::setExpiration() checks for null instead of empty()
1 parent 067529f commit 31b10d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ private function configure(array $config): void
431431
*/
432432
public function setExpiration(?string $time)
433433
{
434-
if (empty($time)) {
434+
if ($time === null) {
435435
return $this->setOptions([
436436
'gc_maxlifetime' => self::DEFAULT_FILE_LIFETIME,
437437
'cookie_lifetime' => 0,

0 commit comments

Comments
 (0)