Skip to content

Commit

Permalink
Compatibility with PHP 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fisharebest committed Oct 6, 2021
1 parent 162f1f0 commit 505f23e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/SessionDatabaseHandler.php
Expand Up @@ -144,9 +144,10 @@ public function destroy($id): bool
/**
* @param int $max_lifetime
*
* @return bool
* @return int|false
*/
public function gc($max_lifetime): bool
#[\ReturnTypeWillChange]
public function gc($max_lifetime)
{
DB::table('session')
->where('session_time', '<', Carbon::now()->subSeconds($max_lifetime))
Expand Down

0 comments on commit 505f23e

Please sign in to comment.