Skip to content

Implement total pages aware pagination #38

Implement total pages aware pagination

Implement total pages aware pagination #38

Triggered via push January 11, 2024 10:57
Status Failure
Total duration 39s
Artifacts

build.yml

on: push
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 8 warnings
Linting: src/Concerns/PaginationLengthAware.php (in context of class Cerbero/LazyJsonPages/Paginations/TotalPagesAwarePagination)#L46
Method Cerbero\LazyJsonPages\Paginations\TotalPagesAwarePagination::chunkPages() should return Illuminate\Support\LazyCollection<int, array<int>> but returns Illuminate\Support\LazyCollection<int, Illuminate\Support\LazyCollection<int, int>>.
Linting: src/Concerns/PaginationLengthAware.php (in context of class Cerbero/LazyJsonPages/Paginations/TotalPagesAwarePagination)#L46
Parameter #1 $size of method Illuminate\Support\LazyCollection<int,int>::chunk() expects int, float|int<min, -1>|int<1, max> given.
Linting: src/Concerns/RetriesHttpRequests.php (in context of class Cerbero/LazyJsonPages/Paginations/TotalPagesAwarePagination)#L23
PHPDoc tag @param has invalid value (Closure(Outcome) $callback): Unexpected token "(", expected variable at offset 95
Linting: src/Concerns/SendsAsyncRequests.php (in context of class Cerbero/LazyJsonPages/Paginations/TotalPagesAwarePagination)#L78
Parameter #2 $items of method Cerbero\LazyJsonPages\Services\Outcome::addItemsFromPage() expects Traversable<int, mixed>, Cerbero\JsonParser\JsonParser given.
Linting: src/Exceptions/LazyJsonPagesException.php#L14
Unsafe usage of new static().
Linting: src/Paginations/TotalPagesAwarePagination.php#L33
Parameter #1 $pages of method Cerbero\LazyJsonPages\Paginations\TotalPagesAwarePagination::itemsByTotalPages() expects int, int|null given.
Linting: src/Services/Api.php#L151
Cannot cast mixed to int.
PHP 8.1 - prefer-stable - ubuntu-latest
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
PHP 8.2 - prefer-stable - ubuntu-latest
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
PHP 8.3 - prefer-stable - ubuntu-latest
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Coverage
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Linting
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
PHP 8.3 - prefer-lowest - ubuntu-latest
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
PHP 8.1 - prefer-lowest - ubuntu-latest
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
PHP 8.2 - prefer-lowest - ubuntu-latest
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/