Skip to content

Commit

Permalink
💀
Browse files Browse the repository at this point in the history
  • Loading branch information
tenmajkl authored Sep 13, 2024
1 parent df1c472 commit 75b0a81
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Lemon/Http/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ public function __destruct()
return;
}

session_commit();

try {
// well this is terrible
session_gc();
session_commit();
} catch (Exception $e) {}

Check failure on line 31 in src/Lemon/Http/Session.php

View workflow job for this annotation

GitHub Actions / build

Caught class Lemon\Http\Exception not found.

Check failure on line 31 in src/Lemon/Http/Session.php

View workflow job for this annotation

GitHub Actions / build

Dead catch - Lemon\Http\Exception is never thrown in the try block.
}

/**
Expand Down

0 comments on commit 75b0a81

Please sign in to comment.