Skip to content

Commit 97a0ba5

Browse files
authored
PHP 8.4 support (#53)
1 parent d7bc1d0 commit 97a0ba5

File tree

9 files changed

+25
-20
lines changed

9 files changed

+25
-20
lines changed

.github/workflows/bc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030
os: >-
3131
['ubuntu-latest']
3232
php: >-
33-
['8.1']
33+
['8.4']

.github/workflows/build.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ name: build
2525
jobs:
2626
phpunit:
2727
uses: yiisoft/actions/.github/workflows/phpunit.yml@master
28+
secrets:
29+
codecovToken: ${{ secrets.CODECOV_TOKEN }}
2830
with:
2931
ini-values: pcov.directory=$GITHUB_WORKSPACE, pcov.exclude=#^(?!($GITHUB_WORKSPACE/config/|$GITHUB_WORKSPACE/src/)).*#
3032
os: >-
3133
['ubuntu-latest', 'windows-latest']
3234
php: >-
33-
['8.1', '8.2', '8.3']
35+
['8.1', '8.2', '8.3', '8.4']

.github/workflows/composer-require-checker.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ jobs:
3131
os: >-
3232
['ubuntu-latest']
3333
php: >-
34-
['8.1', '8.2', '8.3']
34+
['8.1', '8.2', '8.3', '8.4']

.github/workflows/rector.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
on:
2-
pull_request:
2+
pull_request_target:
33
paths-ignore:
44
- 'docs/**'
55
- 'README.md'
@@ -17,7 +17,8 @@ jobs:
1717
secrets:
1818
token: ${{ secrets.YIISOFT_GITHUB_TOKEN }}
1919
with:
20+
repository: ${{ github.event.pull_request.head.repo.full_name }}
2021
os: >-
2122
['ubuntu-latest']
2223
php: >-
23-
['8.3']
24+
['8.4']

.github/workflows/static.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ jobs:
2929
os: >-
3030
['ubuntu-latest']
3131
php: >-
32-
['8.1', '8.2', '8.3']
32+
['8.1', '8.2', '8.3', '8.4']

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## 1.0.2 under development
44

5-
- no changes in this release.
5+
- Chg #53: Change PHP constraint in `composer.json` to `8.1 - 8.4` (@vjik)
66

77
## 1.0.1 August 06, 2024
88

composer.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -32,27 +32,27 @@
3232
}
3333
],
3434
"require": {
35-
"php": "^8.1",
36-
"psr/container": "^1.0|^2.0",
37-
"psr/http-message": "^1.0|^2.0",
35+
"php": "8.1 - 8.4",
36+
"psr/container": "^1.0 || ^2.0",
37+
"psr/http-message": "^1.0 || ^2.0",
3838
"psr/http-server-handler": "^1.0",
3939
"psr/http-server-middleware": "^1.0",
4040
"yiisoft/arrays": "^3.0",
4141
"yiisoft/hydrator": "^1.0",
4242
"yiisoft/hydrator-validator": "^2.0",
4343
"yiisoft/middleware-dispatcher": "^5.1",
44-
"yiisoft/validator": "^1.1|^2.0",
44+
"yiisoft/validator": "^1.1 || ^2.0",
4545
"yiisoft/request-provider": "^1.0"
4646
},
4747
"require-dev": {
48-
"maglnet/composer-require-checker": "^4.7",
49-
"phpunit/phpunit": "^10.5",
50-
"rector/rector": "^2.0.3",
51-
"roave/infection-static-analysis-plugin": "^1.34",
52-
"spatie/phpunit-watcher": "^1.23",
53-
"vimeo/psalm": "^5.22",
54-
"yiisoft/di": "^1.2",
55-
"yiisoft/test-support": "^3.0"
48+
"maglnet/composer-require-checker": "^4.7.1",
49+
"phpunit/phpunit": "^10.5.45",
50+
"rector/rector": "^2.0.11",
51+
"roave/infection-static-analysis-plugin": "^1.35",
52+
"spatie/phpunit-watcher": "^1.24",
53+
"vimeo/psalm": "^5.26.1 || ^6.10",
54+
"yiisoft/di": "^1.3",
55+
"yiisoft/test-support": "^3.0.2"
5656
},
5757
"autoload": {
5858
"psr-4": {

psalm.xml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
errorLevel="1"
44
findUnusedBaselineEntry="true"
55
findUnusedCode="false"
6+
ensureOverrideAttribute="false"
67
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
78
xmlns="https://getpsalm.org/schema/config"
89
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"

tests/Support/TestHelper.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ public static function createParameterAttributesHandler(array $definitions): Par
5050
return new ParameterAttributesHandler(
5151
new ContainerAttributeResolverFactory(
5252
new SimpleContainer($definitions)
53-
)
53+
),
54+
new Hydrator(),
5455
);
5556
}
5657

0 commit comments

Comments
 (0)