marc-mabe / php-enum

Simple and fast implementation of enumerations with native PHP
BSD 3-Clause "New" or "Revised" License
464 stars 36 forks source link

Added additional check to Enum::is() to return TRUE … #77

Closed marc-mabe closed 7 years ago

marc-mabe commented 7 years ago

… in cases both enumerators are the same but of different instances. This can happen because of the issue with serializable singletons

marc-mabe commented 7 years ago

@prolic @delbertooo This PR is updating the method Enum::is() to allow comparing two instances of the same type by value. see #76

prolic commented 7 years ago

Nice!

marc-mabe commented 7 years ago

fixed typo and updated documentation