Marc Mabe Php Enum Versions Save

Simple and fast implementation of enumerations with native PHP

v4.7.0

2 years ago

Improvements

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

Bugfixes

None

BC-breaks

None

v4.6.1

2 years ago

Bugfixes

  • #155 fix error exception on clone $enum

BC-breaks

None

v3.2.0

2 years ago

Support PHP 8.1

v4.6.0

2 years ago

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

v4.6.0-rc1

2 years ago

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

v4.4.0

3 years ago

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

v4.3.0

4 years ago

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.3.0-rc1

4 years ago

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

4 years ago

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

4 years ago

Bugfix release

Changes:

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

BC-breaks:

none