From 88590d48c43c1a880ea5e366c4bc52c834a8972a Mon Sep 17 00:00:00 2001 From: inoas Date: Mon, 21 Aug 2017 00:29:20 +0200 Subject: [PATCH] Session $id is string|int --- src/Network/Session/DatabaseSession.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Network/Session/DatabaseSession.php b/src/Network/Session/DatabaseSession.php index 147ccbc7ac8..0a329632e38 100644 --- a/src/Network/Session/DatabaseSession.php +++ b/src/Network/Session/DatabaseSession.php @@ -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) { @@ -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) @@ -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)