diff --git a/CHANGELOG.md b/CHANGELOG.md index 8feb2dd..565f617 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,8 +9,13 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c ### Deprecated ### Removed ### Fixed +### Security + +## [0.13.1] - 2022-05-27 +### Fixed - Trigger the release note for `released` action instead of `published`. ### Security +- Require Guzzle 7.4.3 and up. ## [0.13.0] - 2022-03-24 ### Added @@ -109,6 +114,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c - Extended `.env.example` file. [Unreleased]: https://github.com/php-telegram-bot/support-bot/compare/master...develop +[0.13.1]: https://github.com/php-telegram-bot/support-bot/compare/0.13.0...0.13.1 [0.13.0]: https://github.com/php-telegram-bot/support-bot/compare/0.12.0...0.13.0 [0.12.0]: https://github.com/php-telegram-bot/support-bot/compare/0.11.0...0.12.0 [0.11.0]: https://github.com/php-telegram-bot/support-bot/compare/0.10.0...0.11.0 diff --git a/composer.json b/composer.json index f926dd3..6a1c1c0 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ "monolog/monolog": "^2.2", "matthiasmullie/scrapbook": "^1.4", "knplabs/github-api": "^3.3", - "guzzlehttp/guzzle": "^7.3", + "guzzlehttp/guzzle": "^7.4.3", "http-interop/http-factory-guzzle": "^1.0" }, "require-dev": { diff --git a/public/manager.php b/public/manager.php index 9f0ec56..6c60f7a 100644 --- a/public/manager.php +++ b/public/manager.php @@ -28,7 +28,7 @@ use TelegramBot\TelegramBotManager\BotManager; use Throwable; -const VERSION = '0.13.0'; +const VERSION = '0.13.1'; // Composer autoloader. require_once __DIR__ . '/../vendor/autoload.php'; @@ -38,11 +38,7 @@ function cache(): KeyValueStore { static $cache; - if (null === $cache) { - $cache = new MySQL(DB::getPdo()); - } - - return $cache; + return $cache ??= new MySQL(DB::getPdo()); } try { @@ -116,7 +112,7 @@ function initLogging(): void /** * Initialise a custom Request Client. */ -function initRequestClient() +function initRequestClient(): void { $config = array_filter([ 'base_uri' => getenv('TG_REQUEST_CLIENT_BASE_URI') ?: 'https://api.telegram.org',