Skip to content

Commit

Permalink
docs: add @throws
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Feb 23, 2024
1 parent 5f0742e commit a38ac8b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions system/Session/Handlers/RedisHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ protected function setSavePath(): void
*
* @param string $path The path where to store/retrieve the session
* @param string $name The session name
*
* @throws RedisException
*/
public function open($path, $name): bool
{
Expand Down Expand Up @@ -154,6 +156,8 @@ public function open($path, $name): bool
*
* @return false|string Returns an encoded string of the read data.
* If nothing was read, it must return false.
*
* @throws RedisException
*/
#[ReturnTypeWillChange]
public function read($id)
Expand Down Expand Up @@ -184,6 +188,8 @@ public function read($id)
*
* @param string $id The session ID
* @param string $data The encoded session data
*
* @throws RedisException
*/
public function write($id, $data): bool
{
Expand Down Expand Up @@ -254,6 +260,8 @@ public function close(): bool
* Destroys a session
*
* @param string $id The session ID being destroyed
*
* @throws RedisException
*/
public function destroy($id): bool
{
Expand Down Expand Up @@ -288,6 +296,8 @@ public function gc($max_lifetime)
* Acquires an emulated lock.
*
* @param string $sessionID Session ID
*
* @throws RedisException
*/
protected function lockSession(string $sessionID): bool
{
Expand Down Expand Up @@ -338,6 +348,8 @@ protected function lockSession(string $sessionID): bool

/**
* Releases a previously acquired lock
*
* @throws RedisException
*/
protected function releaseLock(): bool
{
Expand Down

0 comments on commit a38ac8b

Please sign in to comment.