Skip to content

Commit

Permalink
revert change
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Müller <[email protected]>
  • Loading branch information
mimmi20 committed Dec 11, 2024
1 parent f1c79f2 commit 997c681
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/SessionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

use function array_key_exists;
use function array_merge;
use function constant;
use function defined;
use function headers_sent;
use function is_array;
use function iterator_to_array;
Expand Down Expand Up @@ -91,6 +93,12 @@ public function sessionExists()
return true;
}

$sid = defined('SID') ? constant('SID') : false;

Check failure on line 96 in src/SessionManager.php

View workflow job for this annotation

GitHub Actions / QA Checks (Psalm [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@v1, ...

MixedAssignment

src/SessionManager.php:96:9: MixedAssignment: Unable to determine the type that $sid is being assigned to (see https://psalm.dev/032)

if ($sid !== false && $this->getId()) {
return true;
}

if (headers_sent()) {
return true;
}
Expand Down

0 comments on commit 997c681

Please sign in to comment.