Skip to content

Commit dfce6c9

Browse files
committed
shut up phpstan
1 parent 488d726 commit dfce6c9

File tree

4 files changed

+3
-1
lines changed

4 files changed

+3
-1
lines changed

app/Http/Controllers/Api/ServerPerformanceController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ private function getPerformance(string $address)
2626
function () use ($address) {
2727
$res = null;
2828
try {
29+
/** @var \Illuminate\Http\Client\Response|\Psr\Http\Message\MessageInterface */
2930
$res = Http::withHeaders([
3031
'Accept' => 'application/json',
3132
'Authorization' => config('goonhub.server_performance.key'),

app/Http/Controllers/Api/VpnChecksController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public function check(Request $request, string $ip)
5757
$res = null;
5858

5959
try {
60+
/** @var \Illuminate\Http\Client\Response|\Psr\Http\Message\MessageInterface $res */
6061
$res = Http::get(
6162
'https://ipqualityscore.com/api/json/ip/'
6263
.config('goonhub.ipquality_pass')

app/Libraries/OpenGraphImage.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ protected function makeImage(string $type, $data, string $path): bool
3535
{
3636
$response = null;
3737
try {
38+
/** @var \Illuminate\Http\Client\Response|\Psr\Http\Message\MessageInterface */
3839
$response = Http::withHeaders([
3940
'Cache-Control' => 'no-cache',
4041
'Content-Type' => 'application/json',

app/ModelFilters/BaseModelFilter.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ protected function filterRangeRelationship($key, $val)
3737
if ($operator === 'between') {
3838
$amount = explode('-', $amount);
3939

40-
// @phpstan-ignore argument.type
4140
return $this->has($key, 'BETWEEN', DB::raw("{$amount[0]} and {$amount[1]}"));
4241
}
4342

0 commit comments

Comments
 (0)