diff --git a/.github/workflows/bc.yml b/.github/workflows/bc.yml index 00041a9..0ea4a5c 100644 --- a/.github/workflows/bc.yml +++ b/.github/workflows/bc.yml @@ -30,4 +30,4 @@ jobs: os: >- ['ubuntu-latest'] php: >- - ['8.1'] + ['8.4'] diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9e54c37..ecc05eb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,9 +25,11 @@ name: build jobs: phpunit: uses: yiisoft/actions/.github/workflows/phpunit.yml@master + secrets: + codecovToken: ${{ secrets.CODECOV_TOKEN }} with: ini-values: pcov.directory=$GITHUB_WORKSPACE, pcov.exclude=#^(?!($GITHUB_WORKSPACE/config/|$GITHUB_WORKSPACE/src/)).*# os: >- ['ubuntu-latest', 'windows-latest'] php: >- - ['8.1', '8.2', '8.3'] + ['8.1', '8.2', '8.3', '8.4'] diff --git a/.github/workflows/composer-require-checker.yml b/.github/workflows/composer-require-checker.yml index a857bce..a93390b 100644 --- a/.github/workflows/composer-require-checker.yml +++ b/.github/workflows/composer-require-checker.yml @@ -31,4 +31,4 @@ jobs: os: >- ['ubuntu-latest'] php: >- - ['8.1', '8.2', '8.3'] + ['8.1', '8.2', '8.3', '8.4'] diff --git a/.github/workflows/rector.yml b/.github/workflows/rector.yml index 35411d0..5d6931d 100644 --- a/.github/workflows/rector.yml +++ b/.github/workflows/rector.yml @@ -1,5 +1,5 @@ on: - pull_request: + pull_request_target: paths-ignore: - 'docs/**' - 'README.md' @@ -17,7 +17,8 @@ jobs: secrets: token: ${{ secrets.YIISOFT_GITHUB_TOKEN }} with: + repository: ${{ github.event.pull_request.head.repo.full_name }} os: >- ['ubuntu-latest'] php: >- - ['8.3'] + ['8.4'] diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index e33eca8..d03874d 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -29,4 +29,4 @@ jobs: os: >- ['ubuntu-latest'] php: >- - ['8.1', '8.2', '8.3'] + ['8.1', '8.2', '8.3', '8.4'] diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d135be..503753a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## 1.0.2 under development -- no changes in this release. +- Chg #53: Change PHP constraint in `composer.json` to `8.1 - 8.4` (@vjik) ## 1.0.1 August 06, 2024 diff --git a/composer.json b/composer.json index c853a0d..fb20d16 100644 --- a/composer.json +++ b/composer.json @@ -32,27 +32,27 @@ } ], "require": { - "php": "^8.1", - "psr/container": "^1.0|^2.0", - "psr/http-message": "^1.0|^2.0", + "php": "8.1 - 8.4", + "psr/container": "^1.0 || ^2.0", + "psr/http-message": "^1.0 || ^2.0", "psr/http-server-handler": "^1.0", "psr/http-server-middleware": "^1.0", "yiisoft/arrays": "^3.0", "yiisoft/hydrator": "^1.0", "yiisoft/hydrator-validator": "^2.0", "yiisoft/middleware-dispatcher": "^5.1", - "yiisoft/validator": "^1.1|^2.0", + "yiisoft/validator": "^1.1 || ^2.0", "yiisoft/request-provider": "^1.0" }, "require-dev": { - "maglnet/composer-require-checker": "^4.7", - "phpunit/phpunit": "^10.5", - "rector/rector": "^2.0.3", - "roave/infection-static-analysis-plugin": "^1.34", - "spatie/phpunit-watcher": "^1.23", - "vimeo/psalm": "^5.22", - "yiisoft/di": "^1.2", - "yiisoft/test-support": "^3.0" + "maglnet/composer-require-checker": "^4.7.1", + "phpunit/phpunit": "^10.5.45", + "rector/rector": "^2.0.11", + "roave/infection-static-analysis-plugin": "^1.35", + "spatie/phpunit-watcher": "^1.24", + "vimeo/psalm": "^5.26.1 || ^6.10", + "yiisoft/di": "^1.3", + "yiisoft/test-support": "^3.0.2" }, "autoload": { "psr-4": { diff --git a/psalm.xml b/psalm.xml index 10d319a..98271f9 100644 --- a/psalm.xml +++ b/psalm.xml @@ -3,6 +3,7 @@ errorLevel="1" findUnusedBaselineEntry="true" findUnusedCode="false" + ensureOverrideAttribute="false" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://getpsalm.org/schema/config" xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" diff --git a/tests/Support/TestHelper.php b/tests/Support/TestHelper.php index c8ad084..06ee932 100644 --- a/tests/Support/TestHelper.php +++ b/tests/Support/TestHelper.php @@ -50,7 +50,8 @@ public static function createParameterAttributesHandler(array $definitions): Par return new ParameterAttributesHandler( new ContainerAttributeResolverFactory( new SimpleContainer($definitions) - ) + ), + new Hydrator(), ); }