opis / closure

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

Fix PHP 8.1 compatibility #105

Closed kylekatarnls closed 2 years ago

GrahamCampbell commented 3 years ago

That is not enough. The 3.x branch won't work on PHP 8.1 without major changes.

Ghostff commented 2 years ago

There is no fix for Serializable being deprecated?

garciasdos commented 2 years ago

There is no fix for Serializable being deprecated?

Same question here, hope there's a fix soon 🤞🏼

GrahamCampbell commented 2 years ago

Correct, there is no fix. This is not the only issue you will encounter. Only the new beta version of this package will work with PHP 8.1. Alternatively, Laravel now has a fork that works on PHP 7.4-8.1. It was necessary to drop PHP 7.3 and earlier to enable PHP 8.1 support. https://github.com/laravel/serializable-closure