Skip to content

Releases: spatie/enum

3.1.2

28 Sep 08:11
Compare
Choose a tag to compare
  • Don't cast value to string when serializing to JSON - #68

3.1.1

28 Aug 10:50
Compare
Choose a tag to compare
  • Throw TypeError if value passed to Enum construct is not string or integer

3.1.0

28 Aug 10:28
Compare
Choose a tag to compare

#64

  • Add missing type-hints and doc-blocks
  • Fix unique values and labels
  • Flag EnumDefinition as internal

3.0.0

22 Jul 12:53
Compare
Choose a tag to compare
  • A complete overhaul of the package, all details are discussed in the PR

2.3.8

17 Jul 20:08
Compare
Choose a tag to compare
  • Fix for static isXyz($value) magic methods tto return false on invalid value - follow up fix to v2.3.3 - #62

2.3.7

30 Jun 07:33
Compare
Choose a tag to compare
  • Fix internal usage of toArray() to allow custom array representations #58

2.3.6

11 Mar 10:19
Compare
Choose a tag to compare
  • Fix the name if it's matched but isn't the same #50

2.3.5

11 Feb 10:22
Compare
Choose a tag to compare
  • Fix for isEqual() and isAny() method doc-tags to accept mixed values

2.3.4

17 Jan 13:06
Compare
Choose a tag to compare
  • Fix for static method call passed to __call within the context of an object

2.3.3

25 Sep 20:05
517a1cd
Compare
Choose a tag to compare
  • Allow passing invalid string values to isEqual() #39