Skip to content

Commit e03b598

Browse files
committed
🐛 fix: 'Class CI_SessionWrapper not found' on PHP 8.2 #2
Signed-off-by: otengkwame <[email protected]>
1 parent 05989b5 commit e03b598

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CodeIgniter/Framework/libraries/Session/Session.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ public function __construct(array $params = [])
9999

100100
$class = new $class($this->_config);
101101

102+
include_once('OldSessionWrapper.php'); // Support PHP 8.1 and 8.2
103+
102104
$wrapper = new CI_SessionWrapper($class);
103105

104106
if (is_php('8.0')) {

0 commit comments

Comments
 (0)