Skip to content

Commit

Permalink
bump req to 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
priyadi committed Mar 30, 2024
1 parent d8e12bc commit 9460eda
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 16 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
php: [ '8.1', '8.2', '8.3' ]
php: [ '8.2', '8.3' ]
symfony: [ '6.*', '7.*' ]
dep: [highest,lowest]
exclude:
- php: '8.1'
symfony: '7.*'

name: Symfony ${{ matrix.symfony }}, ${{ matrix.dep }} deps, PHP ${{ matrix.php }}, ${{ matrix.operating-system }}

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
}
},
"require": {
"php": "^8.1",
"php": "^8.2",
"doctrine/collections": "^2.2",
"doctrine/orm": "^2.14 || ^3.0",
"psr/container": "^2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/rekapager-bundle/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
},
"require": {
"php": "^8.1",
"php": "^8.2",
"psr/container": "^2.0",
"rekalogika/rekapager-contracts": "^0.5",
"rekalogika/rekapager-core": "^0.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/rekapager-contracts/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
}
},
"require": {
"php": "^8.1"
"php": "^8.2"
}
}
2 changes: 1 addition & 1 deletion packages/rekapager-core/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
},
"require": {
"php": "^8.1",
"php": "^8.2",
"rekalogika/rekapager-contracts": "^0.5"
}
}
2 changes: 1 addition & 1 deletion packages/rekapager-core/src/Pager/Internal/PagerItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,6 @@ public function getUrl(): ?string
/**
* @internal
*/
final readonly class NullPageNumber
final class NullPageNumber
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
},
"require": {
"php": "^8.1",
"php": "^8.2",
"doctrine/collections": "^2.2",
"rekalogika/rekapager-keyset-pagination": "^0.5",
"rekalogika/rekapager-offset-pagination": "^0.5"
Expand Down
2 changes: 1 addition & 1 deletion packages/rekapager-doctrine-orm-adapter/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
},
"require": {
"php": "^8.1",
"php": "^8.2",
"doctrine/orm": "^2.14 || ^3.0",
"rekalogika/rekapager-keyset-pagination": "^0.5"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/rekapager-keyset-pagination/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
},
"require": {
"php": "^8.1",
"php": "^8.2",
"rekalogika/rekapager-contracts": "^0.5",
"spomky-labs/base64url": "^2.0"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/rekapager-offset-pagination/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
},
"require": {
"php": "^8.1",
"php": "^8.2",
"rekalogika/rekapager-contracts": "^0.5"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ private function getResult(): array
limit: $this->itemsPerPage + 1,
);

/** @psalm-suppress InvalidArgument */
$result = iterator_to_array($result);

if (\count($result) > $this->itemsPerPage) {
$this->hasNextPage = true;
array_pop($result);
Expand Down

0 comments on commit 9460eda

Please sign in to comment.