Add return type to telegram exception test helper

This commit is contained in:
Paulo Castellano 2026-06-13 22:58:04 -03:00
parent c096092c7b
commit 816d367dbe

View file

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