Skip to content

Releases: spatie/enum

3.13.0

22 Apr 08:52
f1a0f46
Compare
Choose a tag to compare

What's Changed

  • Implement Stringable interface on Enum by @jdecool in #116

New Contributors

Full Changelog: 3.12.0...3.13.0

3.12.0

05 Feb 09:45
c0180f1
Compare
Choose a tag to compare
  • Add support for isset() calls to enum ->value und ->label - #109

3.11.1

25 Nov 11:30
4afe5f0
Compare
Choose a tag to compare
  • Change attribute for PHP 8.1 compatibility

3.11.0

25 Nov 10:43
c99fdbb
Compare
Choose a tag to compare
  • Added support for PHP 8.1

3.10.0

20 Oct 11:22
Compare
Choose a tag to compare
  • Fix from() and tryFrom() methods to do PHP type-juggling (string to integer) - #108
  • Fix tryFrom() method to catch scalar type-errors - #105

v3.9.0

10 May 09:28
Compare
Choose a tag to compare
  • Add from() and tryFrom() methods to get closer to PHP8.1 native enums - #94
  • Deprecate make() in favor of from() method - #94
  • Add flyweight pattern to return the same enum instance for every call - #94

3.8.0

12 Apr 13:26
Compare
Choose a tag to compare
  • Add cases() method to retrieve all instances of the enum - #79

3.7.2

10 Mar 16:49
Compare
Choose a tag to compare
  • Fix problem with @readonly annotation and annotation parsing libraries - #92

3.7.1

12 Feb 10:21
Compare
Choose a tag to compare
  • Add description to PHPUnit assertion methods - #88

3.7.0

13 Jan 12:11
Compare
Choose a tag to compare
  • Add ability to use a Closure as value/label map - #87