Skip to content

Commit 95b3bc0

Browse files
authored
Added attribute to make PHP8 happy
1 parent 87d1af4 commit 95b3bc0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Session.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ public function destroy($id): bool
241241
* @param int $maxLifetime The maximum lifetime of a session in seconds.
242242
* @return int|false The number of deleted sessions on success, or false on failure.
243243
*/
244+
#[\ReturnTypeWillChange]
244245
public function gc($maxLifetime)
245246
{
246247
$count = 0;
@@ -389,4 +390,4 @@ private function getSessionFile(string $id): string
389390
{
390391
return $this->savePath . '/sess_' . $id;
391392
}
392-
}
393+
}

0 commit comments

Comments
 (0)