Closed DmitryVarennikov closed 10 years ago
This sounds like a good idea as it doesn't require to parse both operators to be comparable.
I would prefer the smaller method name is()
Yea, is
sounds better, helps to avoid confusion about equal and identical terms for a weak-typed language as PHP is.
closed by ab50cb784481e96c9f5362ddbb1bc9df2bb55fe2
Awesome, could you add 1.2.0
tag?
@dVaffection I'll wait a little bit (1-2 weeks) so other improvements / bugfixes / meanings can go into
Maybe you can add a branch alias for 1.2.0
in your composer.json
?
@dVaffection done
Does it make sense to add
equals
method for enum comparison? So we can actually pass a value to theequals
method to compare current enum object against a scalar value, e.g.