From c0022b3f1394cc8e04875e786055986d86ed7112 Mon Sep 17 00:00:00 2001 From: Yied Pozi Date: Sun, 7 Jul 2024 04:32:00 +0800 Subject: [PATCH 1/2] add support for laravel 11 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index ba810d9..9a072f2 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "homepage": "https://github.com/php-telegram-bot/laravel", "keywords": ["laravel", "telegram", "bot"], "require": { - "illuminate/support": "~7|~8|~9|~10", + "illuminate/support": "~7|~8|~9|~10|~11", "longman/telegram-bot": "^0.81", "ext-pcntl": "*" }, From 8666b2b1859b65bb822165fa47e9564f9baf17fb Mon Sep 17 00:00:00 2001 From: Yied Pozi Date: Sun, 7 Jul 2024 05:05:36 +0800 Subject: [PATCH 2/2] fix: update TelegramFetchCommand::handleSignal() for SignalableCommandInterface compatibility --- src/Console/Commands/TelegramFetchCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/Commands/TelegramFetchCommand.php b/src/Console/Commands/TelegramFetchCommand.php index c57d463..e9d1d3a 100644 --- a/src/Console/Commands/TelegramFetchCommand.php +++ b/src/Console/Commands/TelegramFetchCommand.php @@ -74,7 +74,7 @@ public function getSubscribedSignals(): array return [SIGINT]; } - public function handleSignal(int $signal): void + public function handleSignal(int $signal, int|false $previousExitCode = 0): int|false { $this->shallExit = true; }