Skip to content

Releases: marc-mabe/php-enum

4.7.0 Explicit Stringable interface

19 Apr 02:26
3da42cc
Compare
Choose a tag to compare

Improvements

  • #156 Enums explicitly implements Stringable interface (with stub for PHP < 8)

Bugfixes

None

BC-breaks

None

4.6.1 Bugfix release

13 Feb 06:30
Compare
Choose a tag to compare

Bugfixes

  • #155 fix error exception on clone $enum

BC-breaks

None

3.2.0 Support PHP 8.1

13 Feb 05:47
021dae8
Compare
Choose a tag to compare

Support PHP 8.1

4.6.0 Support PHP 8.1

06 Jan 08:17
207002c
Compare
Choose a tag to compare

Same as v4.6.0-rc1 but with updated dev dependencies

4.6.0-RC1 Support PHP 8.1

04 Sep 04:29
266fd14
Compare
Choose a tag to compare
Pre-release

Improvements

  • #150 PHP-8.1 Support
    • Added Attribute ReturnTypeWillChange to EnumMap.offsetGet
    • Upgrade phpbench to ^1.0.4
    • Upgrade phpstan to ^0.12.96

Bugfixes

  • #150 PHP-8.1 Support
    • Added Attribute ReturnTypeWillChange to EnumMap.offsetGet

BC-breaks

None

Fifth Minor Release of 4.x

12 Oct 21:32
e9dd470
Compare
Choose a tag to compare

Improvements

  • #147 #148 PHP-8 Support

    • make Enum::__clone to be final protected instead of final private (we don't consider this a BC break) - thanks @shmurakami
    • Restrict required PHP version to be ^7.1 or ^8.0
    • Tests & Benchmark: Removed assertion polyfill code in bootstrap
    • Tests: removed usage of assert_options
  • #149 Migrate from Travis CI + Scurinizer to Github Workflow + Codecov

    • This simplifies test runs on specific PHP versions using official docker images including PHP-8

Bugfixes

None

BC-breaks

None

Third Minor Release of 4.x

27 Apr 10:00
Compare
Choose a tag to compare

Improvements

  • #138 #140 Static analyzer improvements for PHPStan & Psalm

    • Generics for EnumSet & EnumMap
    • Better argument and return type information
    • purity markers for Psalm
  • #141 Added __debugInfo() for human readable internals of EnumSet & EnumMap for var_dump()

Bugfixes

None

BC-breaks

None

Third Minor Release of 4.x (Release Candidate)

26 Apr 16:36
fba3870
Compare
Choose a tag to compare

Improvements

  • #138 #140 Static analyzer improvements for PHPStan & Psalm

    • Generics for EnumSet & EnumMap
    • Better argument and return type information
    • purity markers for Psalm
  • #141 Added __debugInfo() for human readable internals of EnumSet & EnumMap for var_dump()

Bugfixes

None

BC-breaks

None

v4.2.0

18 Dec 09:08
e6113cf
Compare
Choose a tag to compare

Second Minor Release of 4.x

Bugfixes

  • #137 fixed TypeError in EnumSet::getBinaryBitsetLe()
  • #134 fixed check of ambiguous values in Enum::byName()

Changes

  • #136 Added PHP-7.4 in CI
  • #125 PHP 7.4 serializer and wrap old Serializable methods for BC
  • #132 Micro optimizations

v4.1.1

22 Sep 04:48
777a804
Compare
Choose a tag to compare

Bugfix release

Changes:

#131 fixed ordinal cache usage of Enum::getName() if ordinal=0

BC-breaks:

none