Skip to content

Releases: palshin/enum

2.0.0

06 Jun 09:34

Choose a tag to compare

  • Remove support for php 7 (now package works only with php 8)
  • Remove bool type for enum member values
  • Allow strict typing
  • Add implementing Stringable interface
  • Now __toString() returns (string) $this->value
  • Add id() method for return unique string for enum member (composed of FQCN and enum member name)
  • Add toArray() method
  • Add toValues() and toNames methods

1.0.0

09 Nov 21:04
bb65c49

Choose a tag to compare

  • basic package functionality