Skip to content

Commit

Permalink
Version 0.13.1
Browse files Browse the repository at this point in the history
  • Loading branch information
noplanman committed May 27, 2022
1 parent 98c9db3 commit 39c3682
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
10 changes: 3 additions & 7 deletions public/manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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 {
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 39c3682

Please sign in to comment.