io-developer / php-whois

PHP WHOIS provides parsed and raw whois lookup of domains and ASN routes. PHP 8.0 compatible (5.4+ old versions)
MIT License
443 stars 118 forks source link

Deprecated function in PHP 8.1.2 #182

Closed dividerbeam closed 2 years ago

dividerbeam commented 2 years ago

PHP-Whois version: 1.0.0

PHP version: 8.1.2

Deprecated : Return type of Iodev\Whois\DataObject::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/src/Iodev/Whois/DataObject.php on line 68

public function jsonSerialize() { return $this->toArray(); }

io-developer commented 2 years ago

Thanks =)