Skip to content

Commit d74677a

Browse files
authored
PHP 8.5 support (#111)
1 parent 4b7cfc5 commit d74677a

File tree

12 files changed

+38
-14
lines changed

12 files changed

+38
-14
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ jobs:
2929
os: >-
3030
['ubuntu-latest', 'windows-latest']
3131
php: >-
32-
['7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
32+
['7.4', '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,5 +31,5 @@ jobs:
3131
os: >-
3232
['ubuntu-latest']
3333
php: >-
34-
['7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
34+
['7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
3535
config: ./composer-require-checker.json

.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.1']
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.5']

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## 1.2.1 under development
44

55
- Enh #98: Refactor `Injector::invoke()` to improve debug trace (@xepozz)
6-
- Chg #105: Change PHP constraint in `composer.json` to `7.4 - 8.4` (@vjik)
6+
- Chg #105, #111: Change PHP constraint in `composer.json` to `7.4 - 8.5` (@vjik)
77
- Enh #105: Adjust pretty name of closures on PHP 8.4 in exception messages (@staabm)
88

99
## 1.2.0 December 20, 2023

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ implementation based on autowiring and
3131

3232
## Requirements
3333

34-
- PHP 7.4 or higher.
34+
- PHP 7.4 - 8.5.
3535

3636
## Installation
3737

composer.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,17 @@
3131
],
3232
"minimum-stability": "stable",
3333
"require": {
34-
"php": "7.4 - 8.4"
34+
"php": "7.4 - 8.5"
3535
},
3636
"require-dev": {
37+
"bamarni/composer-bin-plugin": "^1.8.3",
3738
"maglnet/composer-require-checker": "^3.8 || ^4.2",
3839
"phpbench/phpbench": "^1.1",
3940
"phpunit/phpunit": "^9.5",
4041
"psr/container": "^1.0 || ^2.0",
4142
"rector/rector": "^2.0.10",
42-
"roave/infection-static-analysis-plugin": "^1.16",
4343
"spatie/phpunit-watcher": "^1.23",
44-
"vimeo/psalm": "^4.30 || ^5.26.1 || ^6.8.9",
45-
"yiisoft/test-support": "^1.2"
44+
"yiisoft/test-support": "^1.4 || ^3.1"
4645
},
4746
"suggest": {
4847
"psr/container": "For automatic resolving of dependencies"
@@ -61,10 +60,17 @@
6160
"test": "phpunit --testdox --no-interaction",
6261
"test-watch": "phpunit-watcher watch"
6362
},
63+
"extra": {
64+
"bamarni-bin": {
65+
"bin-links": true,
66+
"target-directory": "tools",
67+
"forward-command": true
68+
}
69+
},
6470
"config": {
6571
"sort-packages": true,
6672
"allow-plugins": {
67-
"infection/extension-installer": true,
73+
"bamarni/composer-bin-plugin": true,
6874
"composer/package-versions-deprecated": true
6975
}
7076
}

src/InvalidArgumentException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
final class InvalidArgumentException extends ArgumentException
88
{
99
protected const EXCEPTION_MESSAGE = 'Invalid argument "%s" when calling "%s"%s. Non-interface argument should be'
10-
. ' named explicitly when passed.';
10+
. ' named explicitly when passed.';
1111
}

src/MissingInternalArgumentException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
final class MissingInternalArgumentException extends ArgumentException
88
{
99
protected const EXCEPTION_MESSAGE = 'Can not determine default value of parameter "%s" when calling "%s"%s because'
10-
. ' it is PHP internal. Please specify argument explicitly.';
10+
. ' it is PHP internal. Please specify argument explicitly.';
1111
}

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

0 commit comments

Comments
 (0)