@@ -37,8 +37,8 @@ public function destroy();
3737 * If $data is an array, it is expected to be an array of key/value pairs
3838 * to be set as session properties.
3939 *
40- * @param array|string $data Property name or associative array of properties
41- * @param mixed $value Property value if single key provided
40+ * @param array|string $data Property name or associative array of properties
41+ * @param array|bool|float|int|object|string|null $value Property value if single key provided
4242 */
4343 public function set ($ data , $ value = null );
4444
@@ -53,7 +53,7 @@ public function set($data, $value = null);
5353 *
5454 * @param string $key Identifier of the session property to retrieve
5555 *
56- * @return mixed The property value(s)
56+ * @return array|bool|float|int|object|string|null The property value(s)
5757 */
5858 public function get (?string $ key = null );
5959
@@ -135,9 +135,9 @@ public function getFlashKeys(): array;
135135 * Sets new data into the session, and marks it as temporary data
136136 * with a set lifespan.
137137 *
138- * @param array|string $data Session data key or associative array of items
139- * @param mixed $value Value to store
140- * @param int $ttl Time-to-live in seconds
138+ * @param array|string $data Session data key or associative array of items
139+ * @param array|bool|float|int|object|string|null $value Value to store
140+ * @param int $ttl Time-to-live in seconds
141141 */
142142 public function setTempdata ($ data , $ value = null , int $ ttl = 300 );
143143
@@ -147,7 +147,7 @@ public function setTempdata($data, $value = null, int $ttl = 300);
147147 *
148148 * @param string $key Session data key
149149 *
150- * @return mixed Session data value or null if not found.
150+ * @return array|bool|float|int|object|string|null Session data value or null if not found.
151151 */
152152 public function getTempdata (?string $ key = null );
153153
0 commit comments