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.'); }