Skip to content

Commit d75c571

Browse files
authored
Add PHP 8.5 support (#287)
1 parent 4c25b21 commit d75c571

10 files changed

Lines changed: 33 additions & 11 deletions

File tree

.github/workflows/build.yml

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

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

Lines changed: 1 addition & 1 deletion
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', '8.4']
34+
['8.1', '8.2', '8.3', '8.4', '8.5']

.github/workflows/mutation.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ name: mutation test
2222

2323
jobs:
2424
mutation:
25-
uses: yiisoft/actions/.github/workflows/roave-infection.yml@master
25+
uses: yiisoft/actions/.github/workflows/infection.yml@master
2626
with:
2727
os: >-
2828
['ubuntu-latest']
2929
php: >-
30-
['8.3']
30+
['8.5']
31+
infection-args: "--ignore-msi-with-no-mutations"
3132
secrets:
3233
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

.github/workflows/rector.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
os: >-
2222
['ubuntu-latest']
2323
php: >-
24-
['8.4']
24+
['8.1']

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## 12.2.2 under development
44

5-
- no changes in this release.
5+
- Enh #287: Add PHP 8.5 support (@vjik)
66

77
## 12.2.1 July 20, 2025
88

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ PHP-based as default, and more. It's used in [Yii Framework](https://www.yiifram
1919

2020
## Requirements
2121

22-
- PHP 8.1 or higher.
22+
- PHP 8.1 - 8.5.
2323

2424
## Installation
2525

composer.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,19 @@
2727
}
2828
],
2929
"require": {
30-
"php": "8.1 - 8.4",
30+
"php": "8.1 - 8.5",
3131
"yiisoft/arrays": "^2.0 || ^3.0",
3232
"yiisoft/cache": "^1.0 || ^2.0 || ^3.0",
3333
"yiisoft/files": "^1.0 || ^2.0",
3434
"yiisoft/html": "^2.5 || ^3.0",
3535
"yiisoft/json": "^1.0"
3636
},
3737
"require-dev": {
38+
"bamarni/composer-bin-plugin": "^1.8.3",
3839
"maglnet/composer-require-checker": "^4.7.1",
3940
"phpunit/phpunit": "^10.5.48",
4041
"rector/rector": "^2.1.2",
41-
"roave/infection-static-analysis-plugin": "^1.35",
4242
"spatie/phpunit-watcher": "^1.24",
43-
"vimeo/psalm": "^5.26.1 || ^6.8.9",
4443
"yiisoft/aliases": "^3.0",
4544
"yiisoft/di": "^1.4",
4645
"yiisoft/psr-dummy-provider": "^1.0.2",
@@ -54,6 +53,11 @@
5453
"params": "params.php",
5554
"di": "di.php",
5655
"di-web": "di-web.php"
56+
},
57+
"bamarni-bin": {
58+
"bin-links": true,
59+
"target-directory": "tools",
60+
"forward-command": true
5761
}
5862
},
5963
"suggestion": {
@@ -72,7 +76,7 @@
7276
"config": {
7377
"sort-packages": true,
7478
"allow-plugins": {
75-
"infection/extension-installer": true,
79+
"bamarni/composer-bin-plugin": true,
7680
"composer/package-versions-deprecated": true
7781
}
7882
},

tools/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/*/vendor
2+
/*/composer.lock

tools/infection/composer.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"require-dev": {
3+
"infection/infection": "^0.26 || ^0.31.9"
4+
},
5+
"config": {
6+
"allow-plugins": {
7+
"infection/extension-installer": true
8+
}
9+
}
10+
}

tools/psalm/composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"require-dev": {
3+
"vimeo/psalm": "^5.26.1 || ^6.8.9"
4+
}
5+
}

0 commit comments

Comments
 (0)