Skip to content

Commit 39c3682

Browse files
committed
Version 0.13.1
1 parent 98c9db3 commit 39c3682

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
99
### Deprecated
1010
### Removed
1111
### Fixed
12+
### Security
13+
14+
## [0.13.1] - 2022-05-27
15+
### Fixed
1216
- Trigger the release note for `released` action instead of `published`.
1317
### Security
18+
- Require Guzzle 7.4.3 and up.
1419

1520
## [0.13.0] - 2022-03-24
1621
### Added
@@ -109,6 +114,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
109114
- Extended `.env.example` file.
110115

111116
[Unreleased]: https://github.com/php-telegram-bot/support-bot/compare/master...develop
117+
[0.13.1]: https://github.com/php-telegram-bot/support-bot/compare/0.13.0...0.13.1
112118
[0.13.0]: https://github.com/php-telegram-bot/support-bot/compare/0.12.0...0.13.0
113119
[0.12.0]: https://github.com/php-telegram-bot/support-bot/compare/0.11.0...0.12.0
114120
[0.11.0]: https://github.com/php-telegram-bot/support-bot/compare/0.10.0...0.11.0

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"monolog/monolog": "^2.2",
2929
"matthiasmullie/scrapbook": "^1.4",
3030
"knplabs/github-api": "^3.3",
31-
"guzzlehttp/guzzle": "^7.3",
31+
"guzzlehttp/guzzle": "^7.4.3",
3232
"http-interop/http-factory-guzzle": "^1.0"
3333
},
3434
"require-dev": {

public/manager.php

+3-7
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
use TelegramBot\TelegramBotManager\BotManager;
2929
use Throwable;
3030

31-
const VERSION = '0.13.0';
31+
const VERSION = '0.13.1';
3232

3333
// Composer autoloader.
3434
require_once __DIR__ . '/../vendor/autoload.php';
@@ -38,11 +38,7 @@ function cache(): KeyValueStore
3838
{
3939
static $cache;
4040

41-
if (null === $cache) {
42-
$cache = new MySQL(DB::getPdo());
43-
}
44-
45-
return $cache;
41+
return $cache ??= new MySQL(DB::getPdo());
4642
}
4743

4844
try {
@@ -116,7 +112,7 @@ function initLogging(): void
116112
/**
117113
* Initialise a custom Request Client.
118114
*/
119-
function initRequestClient()
115+
function initRequestClient(): void
120116
{
121117
$config = array_filter([
122118
'base_uri' => getenv('TG_REQUEST_CLIENT_BASE_URI') ?: 'https://api.telegram.org',

0 commit comments

Comments
 (0)