Skip to content

PHP Depreacted errors on PHP 8.2 #29

@FTCP

Description

@FTCP

There is many warnings after update on PHP 8.2

PHP Deprecated: Return type of greeny\MailLibrary\Selection::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 vendor/php-mail-client/client/MailLibrary/Selection.php:174
PHP Deprecated: Return type of greeny\MailLibrary\Selection::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 vendor/php-mail-client/client/MailLibrary/Selection.php:185
PHP Deprecated: Return type of greeny\MailLibrary\Selection::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 vendor/php-mail-client/client/MailLibrary/Selection.php:200
PHP Deprecated: Return type of greeny\MailLibrary\Selection::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 vendor/php-mail-client/client/MailLibrary/Selection.php:209
PHP Deprecated: Return type of greeny\MailLibrary\Selection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/php-mail-client/client/MailLibrary/Selection.php:219
PHP Deprecated: Return type of greeny\MailLibrary\Selection::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/php-mail-client/client/MailLibrary/Selection.php:229
PHP Deprecated: Return type of greeny\MailLibrary\Selection::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/php-mail-client/client/MailLibrary/Selection.php:234
PHP Deprecated: Return type of greeny\MailLibrary\Selection::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/php-mail-client/client/MailLibrary/Selection.php:242
PHP Deprecated: Return type of greeny\MailLibrary\Selection::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/php-mail-client/client/MailLibrary/Selection.php:250
PHP Deprecated: Return type of greeny\MailLibrary\Selection::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/php-mail-client/client/MailLibrary/Selection.php:255

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions