Deprecation notices on PHP 8.1
-
Hi, I’ve just started testing WP with recently released PHP 8.1 and found that your plugin throws the following deprecation notices:
PHP Deprecated: Return type of FS_Key_Value_Storage::offsetExists($k) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in \wp-content\plugins\error-log-monitor\freemius\includes\managers\class-fs-key-value-storage.php on line 309
PHP Deprecated: Return type of FS_Key_Value_Storage::offsetGet($k) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in \wp-content\plugins\error-log-monitor\freemius\includes\managers\class-fs-key-value-storage.php on line 317
PHP Deprecated: Return type of FS_Key_Value_Storage::offsetSet($k, $v) 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 \wp-content\plugins\error-log-monitor\freemius\includes\managers\class-fs-key-value-storage.php on line 301
PHP Deprecated: Return type of FS_Key_Value_Storage::offsetUnset($k) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in \wp-content\plugins\error-log-monitor\freemius\includes\managers\class-fs-key-value-storage.php on line 313
PHP Deprecated: Return type of FS_Key_Value_Storage::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in \wp-content\plugins\error-log-monitor\freemius\includes\managers\class-fs-key-value-storage.php on line 328
PHP Deprecated: Return type of FS_Key_Value_Storage::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in \wp-content\plugins\error-log-monitor\freemius\includes\managers\class-fs-key-value-storage.php on line 339
PHP Deprecated: Return type of FS_Key_Value_Storage::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in \wp-content\plugins\error-log-monitor\freemius\includes\managers\class-fs-key-value-storage.php on line 350
PHP Deprecated: Return type of FS_Key_Value_Storage::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in \wp-content\plugins\error-log-monitor\freemius\includes\managers\class-fs-key-value-storage.php on line 362
PHP Deprecated: Return type of FS_Key_Value_Storage::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in \wp-content\plugins\error-log-monitor\freemius\includes\managers\class-fs-key-value-storage.php on line 375
PHP Deprecated: Return type of FS_Key_Value_Storage::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in \wp-content\plugins\error-log-monitor\freemius\includes\managers\class-fs-key-value-storage.php on line 389
PHP Deprecated: Return type of Elm_LogFilter::rewind() should either be compatible with FilterIterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in C:\Programs\laragon\www\artitest\wp-content\plugins\error-log-monitor\Elm\LogFilter.php on line 6
PHP Deprecated: Return type of Elm_SeverityFilter::accept() should either be compatible with FilterIterator::accept(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in \wp-content\plugins\error-log-monitor\Elm\SeverityFilter.php on line 134
These are only deprecations and wide usage of PHP 8.1 will start only in a few months, but it would be very kind of you to replace related code proactively.
- The topic ‘Deprecation notices on PHP 8.1’ is closed to new replies.