Not compatible with PHP 8.1
-
The plugin is not compatible with PHP 8.1. To fix this and make it compatible with PHP 8.1 you need to implicitly declare the return types of the \Iterator methods in the Notices class so that they match the return types declared in the \Iterator class.
PHP Error was encountered
Severity: 8192
Message: Return type of Meta_Tag_Manager\Notices::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: notices/notices.php
Line Number: 243PHP Error was encountered
Severity: 8192
Message: Return type of Meta_Tag_Manager\Notices::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: notices/notices.php
Line Number: 251PHP Error was encountered
Severity: 8192
Message: Return type of Meta_Tag_Manager\Notices::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: notices/notices.php
Line Number: 247PHP Error was encountered
Severity: 8192
Message: Return type of Meta_Tag_Manager\Notices::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: notices/notices.php
Line Number: 255PHP Error was encountered
Severity: 8192
Message: Return type of Meta_Tag_Manager\Notices::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: notices/notices.php
Line Number: 240PHP Error was encountered
Severity: 8192
Message: Return type of Meta_Tag_Manager\Notices::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: notices/notices.php
Line Number: 229
- The topic ‘Not compatible with PHP 8.1’ is closed to new replies.