File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff line change 2828use TelegramBot \TelegramBotManager \BotManager ;
2929use Throwable ;
3030
31- const VERSION = '0.13.0 ' ;
31+ const VERSION = '0.13.1 ' ;
3232
3333// Composer autoloader.
3434require_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
4844try {
@@ -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 ' ,
You can’t perform that action at this time.
0 commit comments