Add return type to telegram exception test helper
This commit is contained in:
parent
c096092c7b
commit
816d367dbe
1 changed files with 2 additions and 1 deletions
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue