Closed MyIgel closed 2 years ago
Eventually @oscarotero could have a look and release a new patched version? I think that anyone who wants to use PHP 8.1 and converts warnings to exceptions during testing would greatly appreciate it as it currently breaks unit tests ^^
sorry for the delay. Thank you!
Hi,
Thanks fo this patch. For information, version 5.6.1 has not been published to packagist.
Regards
@cedric-anne Thanks for advising. It's fixed now.
By setting
#[\ReturnTypeWillChange]
forJsonSerializable
andIteratorAggregate
interface implementations the warnings are fixed. As#
was previously only a sign for a comment, its backwards compatible to older PHP versions.Closes #277 (PHP 8.1 compatibility: warnings about JsonSerializable compatibility)