donatj / mock-webserver

Simple mock web server in PHP for unit testing.
MIT License
133 stars 21 forks source link

Fix JsonSerializable deprecation in PHP 8.1 #36

Closed arondeparon closed 2 years ago

arondeparon commented 2 years ago

As mentioned (and fixed) in https://github.com/donatj/mock-webserver/commit/1fde5ecb816ca05465eef1a258129b35e5dd369a, the JsonSerializable interface signature has changed in PHP 8.1.

A fix has already been implemented for this several months ago, but it has not been released yet.

Since PHP 8.1 has now been released, it would be really great if a new release can be drafted with PHP 8.1 support.

donatj commented 2 years ago

Sorry about that, I was waiting for some other changes to materialize and I just never found the time.

I've pushed a tag -

https://github.com/donatj/mock-webserver/releases/tag/v2.4.1

arondeparon commented 2 years ago

No problem, thanks for releasing a new version!