Skip to content

Commit

Permalink
Fix StateJson constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorprogger committed Jun 16, 2024
1 parent 069a0c2 commit ad98502
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions src/State/StateJson.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ public function __construct(
} catch (JsonException) {
$this->data = $data;
}
} else {
$this->data = $data;
}
}

Expand Down

0 comments on commit ad98502

Please sign in to comment.