Skip to content

Commit 583f70e

Browse files
authored
Merge pull request #12 from nguyenanhung/v3.1.14-develop
Fix Session in PHP 8
2 parents 0464cd2 + bfbe87b commit 583f70e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

system/libraries/Session/PHP8SessionWrapper.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ public function __construct(CI_Session_driver_interface $driver)
5656
{
5757
$this->driver = $driver;
5858
}
59-
59+
#[\ReturnTypeWillChange]
6060
public function open($save_path, $name)
6161
{
6262
return $this->driver->open($save_path, $name);
6363
}
64-
64+
#[\ReturnTypeWillChange]
6565
public function close()
6666
{
6767
return $this->driver->close();
@@ -72,12 +72,12 @@ public function read($id)
7272
{
7373
return $this->driver->read($id);
7474
}
75-
75+
#[\ReturnTypeWillChange]
7676
public function write($id, $data)
7777
{
7878
return $this->driver->write($id, $data);
7979
}
80-
80+
#[\ReturnTypeWillChange]
8181
public function destroy($id)
8282
{
8383
return $this->driver->destroy($id);
@@ -88,12 +88,12 @@ public function gc($maxlifetime)
8888
{
8989
return $this->driver->gc($maxlifetime);
9090
}
91-
91+
#[\ReturnTypeWillChange]
9292
public function updateTimestamp($id, $data)
9393
{
9494
return $this->driver->updateTimestamp($id, $data);
9595
}
96-
96+
#[\ReturnTypeWillChange]
9797
public function validateId($id)
9898
{
9999
return $this->driver->validateId($id);

0 commit comments

Comments
 (0)