Skip to content

Releases: datomatic/enum-helper

v2.1.1

29 Dec 10:13
b110466

Choose a tag to compare

fix: error on null value in EnumFrom@wrap in strict mode by @Carnicero90

v2.1.0

19 Dec 07:29
15013b8

Choose a tag to compare

v2.0.2

24 Sep 07:38

Choose a tag to compare

  • fix '0' intBackedENum error on wrap method

v2.0.1

22 Feb 09:52
90f1986

Choose a tag to compare

  • fix invokable with enum case like LESS_5

v2.0.0

31 Oct 10:58

Choose a tag to compare

  • add wrap() method to EnumFrom trait
  • change EnumUniqueId to EnumSerialization trait and change separator to ::
  • add EnumLabel trait if you prefer use ->label() istead of ->desceription()
  • add new EnumProperties trait
  • general refactoring
  • update pest and phpstan versions
  • add pint formatting
  • update github workflow

v1.1.0

15 Oct 11:28

Choose a tag to compare

  • Add nullableDescriptionsByValue method

v1.0.0

09 Sep 12:43

Choose a tag to compare

  • v 1.0 🚀 🎉
  • Added Inspection methods (isPure(),isBacked(),has(), doesntHave(), hasName(), doesntHaveName(), hasValue(), doesntHaveValue())
  • Refactored readme examples and test classes name

v0.7.2

08 Sep 09:27

Choose a tag to compare

  • permit enum equality to compare IntBackedEnum with numeric string

v0.7.1

05 Jul 13:46

Choose a tag to compare

  • added support of null param on in() and notIn() methods

v0.7.0

02 Jul 08:21

Choose a tag to compare

After migrating several projects with my fellow @RobertoNegro and listening to different opinions we have decided to simplify the package.
From now on, I will consider a pure enum as a StringBackedEnum with names as values, so all ***AsSelect() methods will be replaced by ***ByValue() methods.

  • removed all methods ***AsSelect()
  • added support on ***ByValue() methods also for pure enum using name instead value
  • removed NotBackedEnum exception