From 816d367dbe83b24d541dbfe6c5c444515d1e6d74 Mon Sep 17 00:00:00 2001 From: Paulo Castellano Date: Sat, 13 Jun 2026 22:58:04 -0300 Subject: [PATCH] Add return type to telegram exception test helper --- tests/Unit/Exceptions/Social/TelegramPublishExceptionTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Unit/Exceptions/Social/TelegramPublishExceptionTest.php b/tests/Unit/Exceptions/Social/TelegramPublishExceptionTest.php index 1e577d7d..3be8f1d8 100644 --- a/tests/Unit/Exceptions/Social/TelegramPublishExceptionTest.php +++ b/tests/Unit/Exceptions/Social/TelegramPublishExceptionTest.php @@ -4,9 +4,10 @@ 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'); }