MattKetmo / EmailChecker

Disposable email detection library for PHP
MIT License
264 stars 79 forks source link

Add compatibility with PHP 8.1 #80

Closed philipp-kolesnikov closed 2 years ago

philipp-kolesnikov commented 2 years ago

This PR is to fix deprecation messages on PHP 8.1:

PHP Deprecated:  Return type of EmailChecker\ThrowawayDomains::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /data/src/EmailChecker/ThrowawayDomains.php on line 33

PHP Deprecated:  Return type of EmailChecker\ThrowawayDomains::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /data/src/EmailChecker/ThrowawayDomains.php on line 38
MattKetmo commented 2 years ago

Thanks