Skip to content

Releases: myclabs/php-enum

1.8.4

04 Aug 09:54
a867478
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.8.3...1.8.4

1.8.3

05 Jul 08:19
b942d26
Compare
Choose a tag to compare

#147 Fix Psalm annotation

1.8.2

04 Jul 17:45
8bef486
Compare
Choose a tag to compare

#146 Fix Psalm annotation

1.8.1

29 Jun 09:20
55555d3
Compare
Choose a tag to compare

Resolve deprecation on PHP 8.1 #145

1.8.0

15 Feb 16:14
46cf3d8
Compare
Choose a tag to compare

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

1.7.7

14 Nov 18:16
d178027
Compare
Choose a tag to compare

#129 Performance improvement

1.7.6

14 Feb 08:18
5f36467
Compare
Choose a tag to compare

Avoid conflicts with Doctrine Annotations by renaming the Psalm @template annotation into @psalm-template.

1.7.5

13 Feb 09:44
aef7b9f
Compare
Choose a tag to compare

#112 Improved Psalm typing

1.7.4

07 Feb 08:35
Compare
Choose a tag to compare

Psalm has been moved to require-dev ;)

1.7.3

07 Feb 08:08
ff059b0
Compare
Choose a tag to compare

#111 Add Psalm annotations