Skip to content

Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.

Add return type to telegram exception test helper

Paulo Castellano816d367dbe83
diff --git a/tests/Unit/Exceptions/Social/TelegramPublishExceptionTest.php b/tests/Unit/Exceptions/Social/TelegramPublishExceptionTest.php
index 1e577d7d4..3be8f1d87 100644
--- a/tests/Unit/Exceptions/Social/TelegramPublishExceptionTest.php
+++ b/tests/Unit/Exceptions/Social/TelegramPublishExceptionTest.php
@@ -4,9 +4,10 @@ declare(strict_types=1);
use App\Exceptions\Social\ErrorCategory;
use App\Exceptions\Social\TelegramPublishException;
+use Illuminate\Http\Client\Response;
use Illuminate\Support\Facades\Http;
-function telegramErrorResponse(array $body, int $status)
+function telegramErrorResponse(array $body, int $status): Response
{
return Http::fake(['*' => Http::response($body, $status)])->post('https://api.telegram.org/botX/sendMessage');
}