Skip to content

Commit db848c6

Browse files
vjikTigrov
andauthored
PHP 8.4 support (#105)
Co-authored-by: Sergei Tigrov <rrr-r@ya.ru>
1 parent 6012aae commit db848c6

24 files changed

+176
-86
lines changed

.github/workflows/build.yml

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

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

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

.github/workflows/mutation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ jobs:
2929
os: >-
3030
['ubuntu-latest']
3131
php: >-
32-
['8.3']
32+
['8.4']
3333
secrets:
3434
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

.github/workflows/static.yml

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

.github/workflows/yiisoft-di.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
- "8.1"
3838
- "8.2"
3939
- "8.3"
40+
- "8.4"
4041

4142
steps:
4243
- name: Checkout Yii Definitions

.github/workflows/yiisoft-factory.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
- "8.1"
3838
- "8.2"
3939
- "8.3"
40+
- "8.4"
4041

4142
steps:
4243
- name: Checkout Yii Definitions

.php-cs-fixer.dist.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66
use PhpCsFixer\Finder;
77
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
88

9-
$finder = (new Finder())->in([
10-
__DIR__ . '/src',
11-
__DIR__ . '/tests',
12-
]);
9+
$finder = (new Finder())
10+
->in([
11+
__DIR__ . '/src',
12+
__DIR__ . '/tests',
13+
])
14+
->exclude('Php8_4/');
1315

1416
return (new Config())
1517
->setParallelConfig(ParallelConfigFactory::detect())

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22

33
## 3.3.2 under development
44

5+
- Chg #105: Change PHP constraint in `composer.json` to `~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0` (@vjik)
56
- Chg #106: Bump minimal required PHP version to 8.1 (@vjik)
67
- Enh #106: Minor performance optimization: use FQN for PHP functions, remove unnecessary conditions (@vjik)
78
- Enh #106: Mark readonly properties (@vjik)
9+
- Bug #105: Explicitly mark nullable parameters (@vjik)
10+
- Enh #105: Improve definition validation for readonly properties and properties with asymmetric visibility (@vjik)
811

912
## 3.3.1 December 16, 2024
1013

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
}
2727
],
2828
"require": {
29-
"php": "^8.1",
29+
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
3030
"psr/container": "^1.0 || ^2.0"
3131
},
3232
"require-dev": {
@@ -37,7 +37,7 @@
3737
"roave/infection-static-analysis-plugin": "^1.35",
3838
"spatie/phpunit-watcher": "^1.24",
3939
"vimeo/psalm": "^5.26.1 || ^6.7.1",
40-
"yiisoft/test-support": "^3.0"
40+
"yiisoft/test-support": "^3.0.1"
4141
},
4242
"autoload": {
4343
"psr-4": {
@@ -58,7 +58,7 @@
5858
}
5959
},
6060
"scripts": {
61-
"php-cs-fixer": "php-cs-fixer fix",
61+
"php-cs-fixer": "PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix",
6262
"rector": "rector",
6363
"test": "phpunit --testdox --no-interaction",
6464
"test-watch": "phpunit-watcher watch"

infection.json.dist

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
}
1212
},
1313
"mutators": {
14-
"@default": true
14+
"@default": true,
15+
"LessThan": {
16+
"ignoreSourceCodeByRegex": [
17+
".*\\(PHP_VERSION_ID .*"
18+
]
19+
}
1520
}
1621
}

0 commit comments

Comments
 (0)