php-imap icon indicating copy to clipboard operation
php-imap copied to clipboard

Attribute implement ArrayAccess but is not compatible with PHP 8.1

Open sugatasei opened this issue 3 years ago • 0 comments

ArrayAccess interface is not well implemented for PHP 8.1. Type is missing for methods attributes and return type.

https://www.php.net/manual/en/class.arrayaccess.php

Bug exemples : Return type of Webklex\PHPIMAP\Attribute::offsetGet(mixed $key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed Return type of Webklex\PHPIMAP\Attribute::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool PHP Deprecated: Return type of Webklex\PHPIMAP\Attribute::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void

sugatasei avatar Jul 20 '22 13:07 sugatasei