Skip to content

Commit

Permalink
Session: fixed condition in destroy() (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
dakur committed Aug 16, 2021
1 parent 99783ed commit f7fe967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public function close(): void
*/
public function destroy(): void
{
if (!session_status() === PHP_SESSION_ACTIVE) {
if (session_status() !== PHP_SESSION_ACTIVE) {
throw new Nette\InvalidStateException('Session is not started.');
}

Expand Down

0 comments on commit f7fe967

Please sign in to comment.