opis / closure

Serialize closures (anonymous functions)
https://opis.io/closure
MIT License
2.5k stars 84 forks source link

Test package with next PHP version 8.1 #97

Closed kylekatarnls closed 3 years ago

kylekatarnls commented 3 years ago

PHP 8.1 will deprecate Serializable those would be good to be fixed in advance.

Here is the error I get when trying to run with dev-master version of PHP:

In SerializableClosure.php line 18:

The Serializable interface is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary)

Those method get the raw array instead of string so I need to investigate a bit more to propose a fix.

But first I suggest to add PHP 8.1 to the CI so new BC can be caught sooner.

sorinsarca commented 3 years ago

We'll use a new version for php 7.4, 8.0 and 8.1, please check 4.x branch