• Resolved user9876789

    (@user9876789)


    Hello, we are upgrading to PHP 8 and we’re getting these errors when debug is on. Please could these be resolved in the next release? We are currently on v 3.9.2:

    Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in xxx/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Util/Text.php on line 45

    Deprecated: Return type of Weglot\Client\Api\Shared\AbstractCollection::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in xxx/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Client/Api/Shared/AbstractCollectionIterator.php on line 30

     Deprecated: Return type of Weglot\Client\Api\Shared\AbstractCollection::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in xxx/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Client/Api/Shared/AbstractCollectionIterator.php on line 38

    Deprecated: Return type of Weglot\Client\Api\Shared\AbstractCollection::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in xxx/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Client/Api/Shared/AbstractCollectionIterator.php on line 46

    Deprecated: Return type of Weglot\Client\Api\Shared\AbstractCollection::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 xxxx/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Client/Api/Shared/AbstractCollectionArray

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP 8 Deprecated Notices’ is closed to new replies.