Skip to content

Commit 88590d4

Browse files
authored
Session $id is string|int
1 parent cc5a9c1 commit 88590d4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Network/Session/DatabaseSession.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ public function close()
102102
/**
103103
* Method used to read from a database session.
104104
*
105-
* @param int|string $id The key of the value to read
106-
* @return string The value of the key or empty if it does not exist
105+
* @param string|int $id ID that uniquely identifies session in database.
106+
* @return string Session data or empty string if it does not exist.
107107
*/
108108
public function read($id)
109109
{
@@ -134,8 +134,8 @@ public function read($id)
134134
/**
135135
* Helper function called on write for database sessions.
136136
*
137-
* @param int $id ID that uniquely identifies session in database
138-
* @param mixed $data The value of the data to be saved.
137+
* @param string|int $id ID that uniquely identifies session in database.
138+
* @param mixed $data The data to be saved.
139139
* @return bool True for successful write, false otherwise.
140140
*/
141141
public function write($id, $data)
@@ -154,7 +154,7 @@ public function write($id, $data)
154154
/**
155155
* Method called on the destruction of a database session.
156156
*
157-
* @param int $id ID that uniquely identifies session in database
157+
* @param string|int $id ID that uniquely identifies session in database.
158158
* @return bool True for successful delete, false otherwise.
159159
*/
160160
public function destroy($id)

0 commit comments

Comments
 (0)