Browse Source

Merge pull request #11068 from inoas/patch-7

3.x Docblock CacheSession $id is string|int
Mark Story 8 years ago
parent
commit
9fe3efb09e
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/Network/Session/CacheSession.php

+ 5 - 5
src/Network/Session/CacheSession.php

@@ -77,8 +77,8 @@ class CacheSession implements SessionHandlerInterface
     /**
      * Method used to read from a cache session.
      *
-     * @param 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 cache.
+     * @return string Session data or empty string if it does not exist.
      */
     public function read($id)
     {
@@ -94,8 +94,8 @@ class CacheSession implements SessionHandlerInterface
     /**
      * Helper function called on write for cache 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 cache.
+     * @param mixed $data The data to be saved.
      * @return bool True for successful write, false otherwise.
      */
     public function write($id, $data)
@@ -110,7 +110,7 @@ class CacheSession implements SessionHandlerInterface
     /**
      * Method called on the destruction of a cache session.
      *
-     * @param int $id ID that uniquely identifies session in cache
+     * @param string|int $id ID that uniquely identifies session in cache.
      * @return bool Always true.
      */
     public function destroy($id)