Skip to content

Commit 2cff6bc

Browse files
authored
PHP 8.5 support (#153)
1 parent 98170b4 commit 2cff6bc

13 files changed

Lines changed: 41 additions & 42 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
os: >-
3434
['ubuntu-latest', 'windows-latest']
3535
php: >-
36-
['8.0', '8.1', '8.2', '8.3', '8.4']
36+
['8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
3737
phpunit-with-intl:
3838
uses: yiisoft/actions/.github/workflows/phpunit.yml@master
3939
secrets:
@@ -45,4 +45,4 @@ jobs:
4545
os: >-
4646
['ubuntu-latest', 'windows-latest']
4747
php: >-
48-
['8.0', '8.1', '8.2', '8.3', '8.4']
48+
['8.0', '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: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,18 @@ on:
2020

2121
name: mutation test
2222

23+
permissions:
24+
contents: read
25+
2326
jobs:
2427
mutation:
25-
uses: yiisoft/actions/.github/workflows/roave-infection.yml@master
28+
uses: yiisoft/actions/.github/workflows/infection.yml@master
2629
with:
27-
min-covered-msi: 100
2830
extensions: :intl
2931
os: >-
3032
['ubuntu-latest']
3133
php: >-
32-
['8.2']
34+
['8.5']
35+
infection-args: "--ignore-msi-with-no-mutations --min-covered-msi=100"
3336
secrets:
3437
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.0']

.github/workflows/static.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,4 @@ jobs:
3030
os: >-
3131
['ubuntu-latest']
3232
php: >-
33-
['8.1', '8.2', '8.3', '8.4']
34-
psalm80:
35-
uses: yiisoft/actions/.github/workflows/psalm.yml@master
36-
with:
37-
psalm-config: psalm80.xml
38-
os: >-
39-
['ubuntu-latest']
40-
php: >-
41-
['8.0']
33+
['8.0', '8.1', '8.2', '8.3', '8.4']

CHANGELOG.md

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

33
## 3.2.1 under development
44

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

77
## 3.2.0 September 28, 2025
88

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ standalone PHP applications.
1919

2020
## Requirements
2121

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

2424
## Installation
2525

composer.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,17 @@
2828
}
2929
],
3030
"require": {
31-
"php": "8.0 - 8.4",
31+
"php": "8.0 - 8.5",
3232
"psr/event-dispatcher": "1.0.0",
3333
"yiisoft/files": "^1.0 || ^2.0",
3434
"yiisoft/i18n": "^1.0"
3535
},
3636
"require-dev": {
37+
"bamarni/composer-bin-plugin": "^1.8.3",
3738
"maglnet/composer-require-checker": "^4.4",
3839
"phpunit/phpunit": "^9.6.29",
3940
"rector/rector": "^2.1.7",
40-
"roave/infection-static-analysis-plugin": "^1.25",
4141
"spatie/phpunit-watcher": "^1.23.6",
42-
"vimeo/psalm": "^4.30 || ^5.26.1 || ^6.8.9",
4342
"yiisoft/di": "^1.2.1"
4443
},
4544
"suggest": {
@@ -58,6 +57,11 @@
5857
}
5958
},
6059
"extra": {
60+
"bamarni-bin": {
61+
"bin-links": true,
62+
"target-directory": "tools",
63+
"forward-command": true
64+
},
6165
"config-plugin-options": {
6266
"source-directory": "config"
6367
},
@@ -69,12 +73,13 @@
6973
"config": {
7074
"sort-packages": true,
7175
"allow-plugins": {
72-
"infection/extension-installer": true,
76+
"bamarni/composer-bin-plugin": true,
7377
"composer/package-versions-deprecated": true
7478
}
7579
},
7680
"scripts": {
7781
"test": "phpunit --testdox --no-interaction",
78-
"test-watch": "phpunit-watcher watch"
82+
"test-watch": "phpunit-watcher watch",
83+
"mutation": "infection --min-covered-msi=100 -j$(nproc)"
7984
}
8085
}

psalm80.xml

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/Translator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ private function dispatchMissingTranslationCategoryEvent(string $category): void
150150
$this->eventDispatcher !== null
151151
&& !isset($this->dispatchedMissingTranslationCategoryEvents[$category])
152152
) {
153+
/** @infection-ignore-all */
153154
$this->dispatchedMissingTranslationCategoryEvents[$category] = true;
154155
$this->eventDispatcher->dispatch(new MissingTranslationCategoryEvent($category));
155156
}

0 commit comments

Comments
 (0)