Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
os: >-
['ubuntu-latest', 'windows-latest']
php: >-
['8.1', '8.2', '8.3']
['8.1', '8.2', '8.3', '8.4']
2 changes: 1 addition & 1 deletion .github/workflows/composer-require-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
os: >-
['ubuntu-latest']
php: >-
['8.1', '8.2', '8.3']
['8.1', '8.2', '8.3', '8.4']
2 changes: 1 addition & 1 deletion .github/workflows/rector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
os: >-
['ubuntu-latest']
php: >-
['8.3']
['8.4']
2 changes: 1 addition & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
os: >-
['ubuntu-latest']
php: >-
['8.1', '8.2', '8.3']
['8.1', '8.2', '8.3', '8.4']
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
method when non-positive value is passed (@vjik)
- Chg #219: Don't check correctness of current page in `PaginatorInterface::isOnLastPage()` method (@vjik)
- Chg #219: Rename `PaginatorException` to `InvalidPageException` (@vjik)
- Chg #211: Change PHP constraint in `composer.json` to `~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0` (@vjik)

## 1.0.1 January 25, 2023

Expand Down
15 changes: 8 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@
}
],
"require": {
"php": "^8.1",
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
"ext-mbstring": "*",
"yiisoft/arrays": "^3.0"
},
"require-dev": {
"maglnet/composer-require-checker": "^4.7",
"phpunit/phpunit": "^10",
"rector/rector": "^2.0",
"roave/infection-static-analysis-plugin": "^1.34",
"spatie/phpunit-watcher": "^1.23",
"vimeo/psalm": "^5.20"
"maglnet/composer-require-checker": "^4.7.1",
"phpunit/phpunit": "^10.5.45",
"rector/rector": "^2.0.9",
"roave/infection-static-analysis-plugin": "^1.35",
"spatie/phpunit-watcher": "^1.24",
"vimeo/psalm": "^5.26.1 || ^6.6"
},
"autoload": {
"psr-4": {
Expand All @@ -55,6 +55,7 @@
},
"config": {
"sort-packages": true,
"bump-after-update": "dev",
"allow-plugins": {
"infection/extension-installer": true,
"composer/package-versions-deprecated": true
Expand Down
2 changes: 2 additions & 0 deletions src/Processor/DataProcessorException.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
* Exception occurred during data processing.
*
* @see DataProcessorInterface
*
* @psalm-suppress ClassMustBeFinal We assume that the class may be extended in userland.
*/
class DataProcessorException extends RuntimeException
{
Expand Down
2 changes: 2 additions & 0 deletions src/Reader/DataReaderException.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
* Exception occurred during reading data.
*
* @see DataReaderInterface
*
* @psalm-suppress ClassMustBeFinal We assume that the class may be extended in userland.
*/
class DataReaderException extends RuntimeException
{
Expand Down
4 changes: 4 additions & 0 deletions src/Reader/OrderHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ final class OrderHelper
public static function stringToArray(string $orderString): array
{
$order = [];

/**
* @var string[] $parts We use correct regexp here, so `preg_split` never returns false.
*/
$parts = preg_split('/\s*,\s*/', trim($orderString), -1, PREG_SPLIT_NO_EMPTY);

foreach ($parts as $part) {
Expand Down
2 changes: 2 additions & 0 deletions src/Writer/DataWriterException.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
* Exception occurred during writing or deleting data.
*
* @see DataWriterInterface
*
* @psalm-suppress ClassMustBeFinal We assume that the class may be extended in userland.
*/
class DataWriterException extends RuntimeException
{
Expand Down
Loading