Skip to content

Commit 4ac087d

Browse files
committed
docs: replace type mixed at remaining Session class.
1 parent a564fe7 commit 4ac087d

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

system/Session/Handlers/BaseHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ abstract class BaseHandler implements SessionHandlerInterface
3434
/**
3535
* Lock placeholder.
3636
*
37-
* @var mixed
37+
* @var bool
3838
*/
3939
protected $lock = false;
4040

system/Session/Handlers/Database/PostgreHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ protected function setSelect(BaseBuilder $builder)
3131
/**
3232
* Decodes column data
3333
*
34-
* @param mixed $data
34+
* @param string $data
3535
*
3636
* @return false|string
3737
*/

system/Session/Handlers/DatabaseHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ protected function setSelect(BaseBuilder $builder)
172172
/**
173173
* Decodes column data
174174
*
175-
* @param mixed $data
175+
* @param string $data
176176
*
177177
* @return false|string
178178
*/

system/Session/SessionInterface.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)