opis / closure

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

native enum support on version 3 #119

Closed henzeb closed 2 years ago

henzeb commented 2 years ago

I know version 4 is supporting 8.1 and may support enums. But it is still not yet released while php 8.1 was released in November last year.

This PR will support native enums, without breaking functionality in older PHP versions.

GrahamCampbell commented 2 years ago

These changes are not enough to get things working on PHP 8.1.

GrahamCampbell commented 2 years ago

https://github.com/laravel/serializable-closure is a good replacement for the legacy stream of this package.

henzeb commented 2 years ago

They do not implement the serialize helper functions. Which is the implementation I need.

Also, it does for me for the enums. That is enough for me.