Skip to content

Commit c769b7a

Browse files
committed
Fix getName to return null
1 parent f7a733c commit c769b7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpSessionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function start(): void
2828
*/
2929
public function getName(): ?string
3030
{
31-
return (string)session_name();
31+
return session_name() ?: null;
3232
}
3333

3434
/**

0 commit comments

Comments
 (0)