Skip to content

Commit

Permalink
Merge branch '5.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
odan committed Dec 23, 2020
2 parents 13144cf + 19a8dd4 commit df95aee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PhpSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function destroy(): void
*/
public function getId(): string
{
return session_id() ?? '';
return (string)session_id();
}

/**
Expand All @@ -155,7 +155,7 @@ public function setId(string $id): void
*/
public function getName(): string
{
return session_name();
return (string)session_name();
}

/**
Expand Down

0 comments on commit df95aee

Please sign in to comment.