PHP-Secure-Session icon indicating copy to clipboard operation
PHP-Secure-Session copied to clipboard

SessionHandler compatibility in PHP 8

Open Mark-H opened this issue 3 months ago • 1 comments

PHP 8 (not sure which minor exactly) introduced types to the SessionHandler/SessionHandlerInterface which is incompatible with the current implementation of this library.

Deprecated: Return type of PHPSecureSession\SecureHandler::open($save_path, $session_name) should either be compatible with SessionHandler::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/ezimuel/php-secure-session/src/SecureHandler.php on line 49
PHP Deprecated:  Return type of PHPSecureSession\SecureHandler::read($id) should either be compatible with SessionHandler::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in ezimuel/php-secure-session/src/SecureHandler.php on line 60

There is a fork here where @DatabayAG already applied the necessary changes, but it doesn't look like they created a PR.

Mark-H avatar Mar 16 '24 12:03 Mark-H