From a89e968a402af3351e3689e09f12a68a19a1e6b2 Mon Sep 17 00:00:00 2001 From: netkas Date: Sun, 3 Nov 2024 18:23:34 -0500 Subject: [PATCH] Oops --- src/TgBotLib/WebhookBot.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/TgBotLib/WebhookBot.php b/src/TgBotLib/WebhookBot.php index 93f41a9..fcab801 100644 --- a/src/TgBotLib/WebhookBot.php +++ b/src/TgBotLib/WebhookBot.php @@ -5,7 +5,6 @@ use InvalidArgumentException; use TgBotLib\Exceptions\TelegramException; use TgBotLib\Objects\Update; - use function PHPUnit\Framework\isEmpty; class WebhookBot extends Bot { @@ -52,7 +51,7 @@ return; } - if(isEmpty($secretToken)) + if(empty($secretToken)) { throw new InvalidArgumentException('Secret token cannot be empty.'); }