Skip to content

Commit 9c1718b

Browse files
committed
docs: add @throws
1 parent 5f0742e commit 9c1718b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

system/Session/Handlers/RedisHandler.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ protected function setSavePath(): void
115115
*
116116
* @param string $path The path where to store/retrieve the session
117117
* @param string $name The session name
118+
*
119+
* @throws RedisException
118120
*/
119121
public function open($path, $name): bool
120122
{
@@ -154,6 +156,8 @@ public function open($path, $name): bool
154156
*
155157
* @return false|string Returns an encoded string of the read data.
156158
* If nothing was read, it must return false.
159+
*
160+
* @throws RedisException
157161
*/
158162
#[ReturnTypeWillChange]
159163
public function read($id)
@@ -184,6 +188,8 @@ public function read($id)
184188
*
185189
* @param string $id The session ID
186190
* @param string $data The encoded session data
191+
*
192+
* @throws RedisException
187193
*/
188194
public function write($id, $data): bool
189195
{
@@ -254,6 +260,8 @@ public function close(): bool
254260
* Destroys a session
255261
*
256262
* @param string $id The session ID being destroyed
263+
*
264+
* @throws RedisException
257265
*/
258266
public function destroy($id): bool
259267
{
@@ -288,6 +296,8 @@ public function gc($max_lifetime)
288296
* Acquires an emulated lock.
289297
*
290298
* @param string $sessionID Session ID
299+
*
300+
* @throws RedisException
291301
*/
292302
protected function lockSession(string $sessionID): bool
293303
{
@@ -338,6 +348,8 @@ protected function lockSession(string $sessionID): bool
338348

339349
/**
340350
* Releases a previously acquired lock
351+
*
352+
* @throws RedisException
341353
*/
342354
protected function releaseLock(): bool
343355
{

0 commit comments

Comments
 (0)