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