Support integer backed enums in Comparison?
Closed this issue · 2 comments
mrweiner commented
Right now, YourEnum::ENUM->equals()
only supports strings. Are there plans to include some sort of support for integer matching as well?
henzeb commented
It was more of a bug really. In version 1.5.3 this is fixed and you can now compare with integers.
Just on a side note: It doesn't just accept strings or integers, you can also pass along enum objects of the same type.
mrweiner commented
Gotcha, thanks!