Skip to content

Commit bd1f087

Browse files
authored
Require PHP 8.1 (#342)
1 parent b75a482 commit bd1f087

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ jobs:
1818
- "highest"
1919
- "locked"
2020
php-version:
21-
- "8.0"
2221
- "8.1"
2322
- "8.2"
2423
operating-system:
@@ -50,7 +49,7 @@ jobs:
5049
run: "composer audit"
5150

5251
- name: "Run coding style"
53-
if: ${{ matrix.dependencies == 'locked' && matrix.php-version == '8.0' }}
52+
if: ${{ matrix.dependencies == 'locked' && matrix.php-version == '8.1' }}
5453
run: "composer code-style:check"
5554

5655
- name: "Run PHPStan"

.php-cs-fixer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
'@PHP73Migration' => true,
1414
'@PHP74Migration' => true,
1515
'@PHP80Migration' => true,
16+
'@PHP81Migration' => true,
1617
'@DoctrineAnnotation' => true,
1718
'align_multiline_comment' => true,
1819
'array_indentation' => true,

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121
},
2222
"require": {
23-
"php": ">=8.0,<8.3",
23+
"php": ">=8.1,<9",
2424
"ext-json": "*"
2525
},
2626
"require-dev": {
@@ -38,7 +38,7 @@
3838
"bin-dir": "bin",
3939
"sort-packages": true,
4040
"platform": {
41-
"php": "8.0.26"
41+
"php": "8.1.17"
4242
},
4343
"allow-plugins": {
4444
"infection/extension-installer": true

composer.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
return static function (RectorConfig $rectorConfig): void {
1111
$rectorConfig->parallel();
1212
$rectorConfig->paths([__DIR__.'/src', __DIR__.'/tests']);
13-
$rectorConfig->phpVersion(PhpVersion::PHP_80);
13+
$rectorConfig->phpVersion(PhpVersion::PHP_81);
1414
$rectorConfig->phpstanConfig(__DIR__.'/phpstan-rector.neon');
1515
$rectorConfig->importNames();
1616
$rectorConfig->importShortClasses(false);
1717

1818
$rectorConfig->sets([
1919
SetList::CODE_QUALITY,
20-
LevelSetList::UP_TO_PHP_80,
20+
LevelSetList::UP_TO_PHP_81,
2121
]);
2222
};

0 commit comments

Comments
 (0)