Return type of CI_Session_files_driver::open($save_path, $name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
/system/libraries/Session/drivers/Session_driver.php
#[\ReturnTypeWillChange]
public function open($save_path, $name)
{
...
}
#[\ReturnTypeWillChange]
public function read($session_id)
{
...
}
#[\ReturnTypeWillChange]
public function write($session_id, $session_data)
{
...
}
#[\ReturnTypeWillChange]
public function close()
{
...
}
#[\ReturnTypeWillChange]
public function destroy($session_id)
{
...
}
#[\ReturnTypeWillChange]
public function gc($maxlifetime)
{
...
}
#[\ReturnTypeWillChange] 들만 넣어 주면 에러가 나지 않는다.
'PHP' 카테고리의 다른 글
windows에 apache + php + mysql 따로 설치 (0) | 2024.03.07 |
---|---|
PHP 에서 root (sudo) 권한 실행 (system, exec) (0) | 2023.09.15 |
[php] Message: Creation of dynamic property CI_URI::$config is deprecated 에러 해결 (0) | 2023.09.11 |
Message: ftp_get(): Illegal PORT range rejected. 해결 (0) | 2023.09.07 |
PHP 8.2 phpExcel 대체 phpSpreadsheet 설치 (0) | 2023.09.06 |