Skip to content

Releases: datomatic/enum-helper

v2.1.1

Choose a tag to compare

@trippo trippo released this 29 Dec 10:13
b110466

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

v2.1.0

Choose a tag to compare

@trippo trippo released this 19 Dec 07:29
15013b8

v2.0.2

Choose a tag to compare

@trippo trippo released this 24 Sep 07:38
  • fix '0' intBackedENum error on wrap method

v2.0.1

Choose a tag to compare

@trippo trippo released this 22 Feb 09:52
90f1986
  • fix invokable with enum case like LESS_5

v2.0.0

Choose a tag to compare

@trippo trippo released this 31 Oct 10:58
  • 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

Choose a tag to compare

@trippo trippo released this 15 Oct 11:28
  • Add nullableDescriptionsByValue method

v1.0.0

Choose a tag to compare

@trippo trippo released this 09 Sep 12:43
  • v 1.0 🚀 🎉
  • Added Inspection methods (isPure(),isBacked(),has(), doesntHave(), hasName(), doesntHaveName(), hasValue(), doesntHaveValue())
  • Refactored readme examples and test classes name

v0.7.2

Choose a tag to compare

@trippo trippo released this 08 Sep 09:27
  • permit enum equality to compare IntBackedEnum with numeric string

v0.7.1

Choose a tag to compare

@trippo trippo released this 05 Jul 13:46
  • added support of null param on in() and notIn() methods

v0.7.0

Choose a tag to compare

@trippo trippo released this 02 Jul 08:21

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