File tree 3 files changed +10
-8
lines changed
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
9
9
### Deprecated
10
10
### Removed
11
11
### Fixed
12
+ ### Security
13
+
14
+ ## [ 0.13.1] - 2022-05-27
15
+ ### Fixed
12
16
- Trigger the release note for ` released ` action instead of ` published ` .
13
17
### Security
18
+ - Require Guzzle 7.4.3 and up.
14
19
15
20
## [ 0.13.0] - 2022-03-24
16
21
### Added
@@ -109,6 +114,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
109
114
- Extended ` .env.example ` file.
110
115
111
116
[ 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
112
118
[ 0.13.0 ] : https://github.com/php-telegram-bot/support-bot/compare/0.12.0...0.13.0
113
119
[ 0.12.0 ] : https://github.com/php-telegram-bot/support-bot/compare/0.11.0...0.12.0
114
120
[ 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 28
28
"monolog/monolog" : " ^2.2" ,
29
29
"matthiasmullie/scrapbook" : " ^1.4" ,
30
30
"knplabs/github-api" : " ^3.3" ,
31
- "guzzlehttp/guzzle" : " ^7.3" ,
31
+ "guzzlehttp/guzzle" : " ^7.4. 3" ,
32
32
"http-interop/http-factory-guzzle" : " ^1.0"
33
33
},
34
34
"require-dev" : {
Original file line number Diff line number Diff line change 28
28
use TelegramBot \TelegramBotManager \BotManager ;
29
29
use Throwable ;
30
30
31
- const VERSION = '0.13.0 ' ;
31
+ const VERSION = '0.13.1 ' ;
32
32
33
33
// Composer autoloader.
34
34
require_once __DIR__ . '/../vendor/autoload.php ' ;
@@ -38,11 +38,7 @@ function cache(): KeyValueStore
38
38
{
39
39
static $ cache ;
40
40
41
- if (null === $ cache ) {
42
- $ cache = new MySQL (DB ::getPdo ());
43
- }
44
-
45
- return $ cache ;
41
+ return $ cache ??= new MySQL (DB ::getPdo ());
46
42
}
47
43
48
44
try {
@@ -116,7 +112,7 @@ function initLogging(): void
116
112
/**
117
113
* Initialise a custom Request Client.
118
114
*/
119
- function initRequestClient ()
115
+ function initRequestClient (): void
120
116
{
121
117
$ config = array_filter ([
122
118
'base_uri ' => getenv ('TG_REQUEST_CLIENT_BASE_URI ' ) ?: 'https://api.telegram.org ' ,
You can’t perform that action at this time.
0 commit comments