Skip to content

refactor release data to DTO for proper type hinting #20 #80

refactor release data to DTO for proper type hinting #20

refactor release data to DTO for proper type hinting #20 #80

Triggered via push January 18, 2025 10:57
Status Failure
Total duration 33s
Billable time 1m
Artifacts

stan.yaml

on: push
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 1 warning
phpstan: app/TUF/TufFetcher.php#L23
Method App\TUF\TufFetcher::getReleases() return type with generic class Illuminate\Support\Collection does not specify its types: TKey, TValue
phpstan: app/TUF/TufFetcher.php#L26
Method App\TUF\TufFetcher::getReleases() should return Illuminate\Support\Collection but returns mixed.
phpstan: app/TUF/TufFetcher.php#L54
Method App\TUF\TufFetcher::getLatestVersionForBranch() should return string but returns mixed.
phpstan: app/TUF/TufFetcher.php#L54
Parameter #1 $callback of method Illuminate\Support\Collection<(int|string),mixed>::filter() expects (callable(mixed, int|string): bool)|null, Closure(App\TUF\ReleaseData): bool given.
phpstan: app/TUF/TufFetcher.php#L56
Parameter #1 $callback of method Illuminate\Support\Collection<(int|string),mixed>::sort() expects (callable(mixed, mixed): int)|int|null, Closure(App\TUF\ReleaseData, App\TUF\ReleaseData): bool given.
phpstan
Process completed with exit code 1.
phpstan
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636