Skip to content

Commit

Permalink
Session $id is string|int
Browse files Browse the repository at this point in the history
  • Loading branch information
inoas committed Aug 20, 2017
1 parent cc5a9c1 commit 88590d4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Network/Session/DatabaseSession.php
Expand Up @@ -102,8 +102,8 @@ public function close()
/**
* Method used to read from a database session.
*
* @param int|string $id The key of the value to read
* @return string The value of the key or empty if it does not exist
* @param string|int $id ID that uniquely identifies session in database.
* @return string Session data or empty string if it does not exist.
*/
public function read($id)
{
Expand Down Expand Up @@ -134,8 +134,8 @@ public function read($id)
/**
* Helper function called on write for database sessions.
*
* @param int $id ID that uniquely identifies session in database
* @param mixed $data The value of the data to be saved.
* @param string|int $id ID that uniquely identifies session in database.
* @param mixed $data The data to be saved.
* @return bool True for successful write, false otherwise.
*/
public function write($id, $data)
Expand All @@ -154,7 +154,7 @@ public function write($id, $data)
/**
* Method called on the destruction of a database session.
*
* @param int $id ID that uniquely identifies session in database
* @param string|int $id ID that uniquely identifies session in database.
* @return bool True for successful delete, false otherwise.
*/
public function destroy($id)
Expand Down

0 comments on commit 88590d4

Please sign in to comment.