From 5870275f3811dc63c08200b1536ab2f8618b6a52 Mon Sep 17 00:00:00 2001 From: Tom Witkowski Date: Mon, 10 May 2021 11:27:50 +0200 Subject: [PATCH] v3.9.0 --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 65ad3ae..85b3544 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to `enum` will be documented in this file +## 3.9.0 - 2021-05-10 + +- Add `from()` and `tryFrom()` methods to get closer to PHP8.1 native enums - [#94](https://github.com/spatie/enum/pull/94) +- Deprecate `make()` in favor of `from()` method - [#94](https://github.com/spatie/enum/pull/94) +- Add flyweight pattern to return the same enum instance for every call - [#94](https://github.com/spatie/enum/pull/94) + ## 3.8.0 - 2021-04-12 - Add `cases()` method to retrieve all instances of the enum - [#79](https://github.com/spatie/enum/pull/79)