diff --git a/CHANGELOG.md b/CHANGELOG.md index dbd182c..ce3817b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,3 +8,23 @@ - Fix failed tests - PhpUnit cache is removed from the repository - Telegram Update variables are completely renamed from $request to $update + +## 0.11.0 + +- `UserId` value object is removed. Using `string` instead. + +## 0.11.1 + +- State management is added. Users now may use chat/user state in router rules and update handlers + +## 0.11.2 + +- More PhpDocs for `StateRepositoryInterface` and `StateMiddleware` + +## 0.11.3 + +- Bugfix: `StateJson` didn't correctly set data when data is not a string + +## 0.12.0 + +Work in progress diff --git a/src/State/StateJson.php b/src/State/StateJson.php index 6b67249..8c5580f 100644 --- a/src/State/StateJson.php +++ b/src/State/StateJson.php @@ -36,6 +36,8 @@ public function __construct( } catch (JsonException) { $this->data = $data; } + } else { + $this->data = $data; } }