Skip to content

Commit

Permalink
Even earlier return
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksi Peebles <[email protected]>
  • Loading branch information
aleksip committed Feb 29, 2024
1 parent a411e0a commit dcf8fe8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/SessionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,7 @@ protected function initializeValidatorChain()
*/
public function destroy(?array $options = null)
{
if (! $this->sessionExists()) {
return;
}

if (headers_sent()) {
if (headers_sent() || ! $this->sessionExists()) {
return;
}

Expand Down

0 comments on commit dcf8fe8

Please sign in to comment.