pleonasm / bloom-filter

PHP implementation of a bloom filter
BSD 2-Clause "Simplified" License
62 stars 12 forks source link

Fatal errors with PHP 8.1 #9

Closed hexmode closed 2 years ago

hexmode commented 2 years ago

While running tests against MediaWiki with PHP 8.1, I get errors like:

PHP Fatal error:  During inheritance of JsonSerializable: Uncaught Return type of
Pleo\BloomFilter\BitArray::jsonSerialize() should either be compatible with
JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute
should be used to temporarily suppress the notice
hexmode commented 2 years ago

It would be be nice to get this merged and then tag 2.0 to close #7 in the next few days.