Skip to content

Commit

Permalink
phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioGattolla committed Aug 30, 2024
1 parent 43645b6 commit 3fe86e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/Concerns/InteractsWithTelegram.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ function ($request, Attachment $attachment, string $key) {
);

/** @phpstan-ignore-next-line */
return $request->timeout(config('telegraph.http_timeout', 30))
->connectTimeout(config('telegraph.http_connection_timeout', 10))
->post($this->getApiUrl(), $this->prepareData());
return $request->timeout(config('telegraph.http_timeout', 30))->connectTimeout(config('telegraph.http_connection_timeout', 10))->post($this->getApiUrl(), $this->prepareData());
}

/**
Expand Down
4 changes: 1 addition & 3 deletions src/Jobs/SendRequestToTelegramJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ function ($request, Attachment $attachment, string $key) {
);

/** @phpstan-ignore-next-line */
$request->timeout(config('telegraph.http_timeout', 30))
->connectTimeout(config('telegraph.http_connection_timeout', 10))
->post($this->url, $this->data);
$request->timeout(config('telegraph.http_timeout', 30))->connectTimeout(config('telegraph.http_connection_timeout', 10))->post($this->url, $this->data);
}
}

0 comments on commit 3fe86e1

Please sign in to comment.