Skip to content

Commit 1ec2e2b

Browse files
committed
🔧 modify return types
Signed-off-by: otengkwame <[email protected]>
1 parent 7da4ffa commit 1ec2e2b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CodeIgniter/Framework/libraries/Session/PHP8SessionWrapper.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
* @subpackage Libraries
4747
* @category Sessions
4848
* @author Andrey Andreev
49+
* @author Kwame Oteng Appiah-Nti
4950
* @link https://codeigniter.com/userguide3/libraries/sessions.html
5051
*/
5152
class CI_PHP8SessionWrapper implements SessionHandlerInterface, SessionUpdateTimestampHandlerInterface
@@ -69,7 +70,7 @@ public function close(): bool
6970
}
7071

7172
#[\ReturnTypeWillChange]
72-
public function read(string $id): mixed
73+
public function read(string $id): string|false
7374
{
7475
return $this->driver->read($id);
7576
}
@@ -85,7 +86,7 @@ public function destroy(string $id): bool
8586
}
8687

8788
#[\ReturnTypeWillChange]
88-
public function gc(int $maxlifetime): mixed
89+
public function gc(int $maxlifetime): int|false
8990
{
9091
return $this->driver->gc($maxlifetime);
9192
}

CodeIgniter/Framework/libraries/Session/Session.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
* @subpackage Libraries
4747
* @category Sessions
4848
* @author Andrey Andreev
49+
* @author Kwame Oteng Appiah-Nti
4950
* @link https://codeigniter.com/userguide3/libraries/sessions.html
5051
*/
5152
class CI_Session

0 commit comments

Comments
 (0)