Skip to content

Commit f7fe967

Browse files
authored
Session: fixed condition in destroy() (#204)
1 parent 99783ed commit f7fe967

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public function close(): void
176176
*/
177177
public function destroy(): void
178178
{
179-
if (!session_status() === PHP_SESSION_ACTIVE) {
179+
if (session_status() !== PHP_SESSION_ACTIVE) {
180180
throw new Nette\InvalidStateException('Session is not started.');
181181
}
182182

0 commit comments

Comments
 (0)