Releases: myclabs/php-enum
Releases · myclabs/php-enum
1.8.4
What's Changed
- Do not export psalm.xml in dist by @simPod in #153
- Add Github Actions CI by @simPod in #154
- document migration to native enums by @drealecs in #158
- Added PHP 8.1 to CI configuration by @grogy in #161
- Fix Shepherd link in README by @szepeviktor in #162
- yii2-enum is abandoned and not supporting anymore by @KartaviK in #163
- Implement Stringable interface on Enum by @jdecool in #160
New Contributors
- @simPod made their first contribution in #153
- @szepeviktor made their first contribution in #162
- @jdecool made their first contribution in #160
Full Changelog: 1.8.3...1.8.4
1.8.3
1.8.2
1.8.1
1.8.0
Added:
- new
Enum::from()
method as an alternative to the constructor that is more strictly typed, and provides a forward compatible solution with PHP 8.1 enums - new
Enum::assertValidValue()
to assert that a value is correct
Psalm annotations have been improved as well.
Thanks @drealecs, @Ocramius, @michaelpetri, @gharlan, @simPod