Skip to content

Commit

Permalink
cs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SniperSister committed Nov 17, 2024
1 parent 951de85 commit 7621332
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion app/Jobs/CheckSiteHealth.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use Carbon\Carbon;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Queue\Queueable;
use Illuminate\Support\Str;

class CheckSiteHealth implements ShouldQueue
{
Expand Down
8 changes: 4 additions & 4 deletions app/TUF/TufFetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ function () {
public function getLatestVersionForBranch(int $branch): string
{
return $this->getReleases()->filter(function ($release) {

Check failure on line 52 in app/TUF/TufFetcher.php

View workflow job for this annotation

GitHub Actions / phpstan

Method App\TUF\TufFetcher::getLatestVersionForBranch() should return string but returns mixed.
return $release["stability"] === "Stable";
})->sort(function ($releaseA, $releaseB) {
return version_compare($releaseA["version"], $releaseB["version"], '<');
})->pluck('version')->first();
return $release["stability"] === "Stable";

Check failure on line 53 in app/TUF/TufFetcher.php

View workflow job for this annotation

GitHub Actions / phpstan

Cannot access offset 'stability' on mixed.
})->sort(function ($releaseA, $releaseB) {

Check failure on line 54 in app/TUF/TufFetcher.php

View workflow job for this annotation

GitHub Actions / phpstan

Parameter #1 $callback of method Illuminate\Support\Collection<(int|string),mixed>::sort() expects (callable(mixed, mixed): int)|int|null, Closure(mixed, mixed): bool given.
return version_compare($releaseA["version"], $releaseB["version"], '<');

Check failure on line 55 in app/TUF/TufFetcher.php

View workflow job for this annotation

GitHub Actions / phpstan

Cannot access offset 'version' on mixed.

Check failure on line 55 in app/TUF/TufFetcher.php

View workflow job for this annotation

GitHub Actions / phpstan

Cannot access offset 'version' on mixed.

Check failure on line 55 in app/TUF/TufFetcher.php

View workflow job for this annotation

GitHub Actions / phpstan

Parameter #1 $version1 of function version_compare expects string, mixed given.

Check failure on line 55 in app/TUF/TufFetcher.php

View workflow job for this annotation

GitHub Actions / phpstan

Parameter #2 $version2 of function version_compare expects string, mixed given.
})->pluck('version')->first();
}
}

0 comments on commit 7621332

Please sign in to comment.