Skip to content

Use async task for fetching data from Poggit task #312

Use async task for fetching data from Poggit task

Use async task for fetching data from Poggit task #312

Triggered via push November 30, 2023 06:39
Status Failure
Total duration 28s
Artifacts

ci.yml

on: push
PHPStan analysis
16s
PHPStan analysis
Code Style checks
7s
Code Style checks
Fit to window
Zoom out
Zoom in

Annotations

11 errors
Code Style checks
Process completed with exit code 8.
PHPStan analysis: src/tasks/FetchDataTask.php#L48
Cannot call method addVersion() on null.
PHPStan analysis: src/tasks/FetchDataTask.php#L53
Parameter #3 $downloads of class thebigcrafter\omp\types\PluginVersion constructor expects int, string given.
PHPStan analysis: src/tasks/FetchDataTask.php#L54
Parameter #4 $score of class thebigcrafter\omp\types\PluginVersion constructor expects int|null, string given.
PHPStan analysis: src/tasks/FetchDataTask.php#L57
Offset 'from' does not exist on string.
PHPStan analysis: src/tasks/FetchDataTask.php#L57
Offset 'to' does not exist on string.
PHPStan analysis: src/tasks/FetchDataTask.php#L60
Parameter #2 $array of function array_map expects array, string given.
PHPStan analysis: src/tasks/FetchDataTask.php#L69
Parameter #3 $downloads of class thebigcrafter\omp\types\PluginVersion constructor expects int, string given.
PHPStan analysis: src/tasks/FetchDataTask.php#L70
Parameter #4 $score of class thebigcrafter\omp\types\PluginVersion constructor expects int|null, string given.
PHPStan analysis: src/tasks/FetchDataTask.php#L73
Offset 'from' does not exist on string.
PHPStan analysis: src/tasks/FetchDataTask.php#L73
Offset 'to' does not exist on string.