PHP 8.* compatibility
-
Hello, I see the following warnings with PHP 8.1:
[08-Aug-2022 01:18:00 UTC] PHP Deprecated: Return type of WP_Session::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in .../public_html/wp-content/plugins/wp-session-manager/includes/deprecated.php on line 206 [08-Aug-2022 01:18:00 UTC] PHP Deprecated: Return type of WP_Session::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in .../public_html/wp-content/plugins/wp-session-manager/includes/deprecated.php on line 213 [08-Aug-2022 01:18:00 UTC] PHP Deprecated: Return type of WP_Session::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in .../public_html/wp-content/plugins/wp-session-manager/includes/deprecated.php on line 220 [08-Aug-2022 01:18:00 UTC] PHP Deprecated: Return type of WP_Session::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in .../public_html/wp-content/plugins/wp-session-manager/includes/deprecated.php on line 227 [08-Aug-2022 01:18:00 UTC] PHP Deprecated: Return type of EAMann\Sessionz\Manager::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 in .../public_html/wp-content/plugins/wp-session-manager/vendor/ericmann/sessionz/php/Manager.php on line 217 [08-Aug-2022 01:18:00 UTC] PHP Deprecated: Return type of EAMann\Sessionz\Manager::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in .../public_html/wp-content/plugins/wp-session-manager/vendor/ericmann/sessionz/php/Manager.php on line 148 [08-Aug-2022 01:18:00 UTC] PHP Deprecated: Return type of EAMann\Sessionz\Manager::read($session_id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in .../public_html/wp-content/plugins/wp-session-manager/vendor/ericmann/sessionz/php/Manager.php on line 238 [08-Aug-2022 01:18:00 UTC] PHP Deprecated: Return type of EAMann\Sessionz\Manager::write($session_id, $session_data) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in .../public_html/wp-content/plugins/wp-session-manager/vendor/ericmann/sessionz/php/Manager.php on line 260 [08-Aug-2022 01:18:00 UTC] PHP Deprecated: Return type of EAMann\Sessionz\Manager::destroy($session_id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in .../public_html/wp-content/plugins/wp-session-manager/vendor/ericmann/sessionz/php/Manager.php on line 173 [08-Aug-2022 01:18:00 UTC] PHP Deprecated: Return type of EAMann\Sessionz\Manager::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in .../public_html/wp-content/plugins/wp-session-manager/vendor/ericmann/sessionz/php/Manager.php on line 195
- The topic ‘PHP 8.* compatibility’ is closed to new replies.