Skip to content

Commit 1f8f78c

Browse files
committed
refactor(project): Upgrade PHP version references from 8.0 to 8.1
- Update rector.php to set PHP version to 8.1 and related sets - Change PHP-CS-Fixer rule set from Php80 to Php81 - Modify PHP version in .php-cs-fixer.php to Php81 - Adjust GitHub workflows for PHP version 8.1 in yaml files - Update README to specify PHP >= 8.1 - Revise composer.json to require PHP >= 8.1 - Reflect PHP 8.1 in additional CI workflows and configuration files
1 parent 19f5339 commit 1f8f78c

File tree

8 files changed

+18
-18
lines changed

8 files changed

+18
-18
lines changed

.github/workflows/php-cs-fixer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup PHP
1313
uses: shivammathur/setup-php@v2
1414
with:
15-
php-version: '8.0'
15+
php-version: '8.1'
1616
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
1717
coverage: none
1818

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup PHP
2222
uses: shivammathur/setup-php@v2
2323
with:
24-
php-version: '8.0'
24+
php-version: '8.1'
2525
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
2626
coverage: none
2727

.github/workflows/rector.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup PHP
2121
uses: shivammathur/setup-php@v2
2222
with:
23-
php-version: '8.0'
23+
php-version: '8.1'
2424
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
2525
coverage: none
2626

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
fail-fast: false
1010
matrix:
1111
os: [ ubuntu-latest ]
12-
php: [ 8.0, 8.1, 8.2, 8.3, 8.4, 8.5 ]
12+
php: [ 8.1, 8.2, 8.3, 8.4, 8.5 ]
1313
dependency-version: [ prefer-stable ]
1414

1515
name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}

.php-cs-fixer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use Ergebnis\PhpCsFixer\Config\Factory;
2020
use Ergebnis\PhpCsFixer\Config\Fixers;
2121
use Ergebnis\PhpCsFixer\Config\Rules;
22-
use Ergebnis\PhpCsFixer\Config\RuleSet\Php80;
22+
use Ergebnis\PhpCsFixer\Config\RuleSet\Php81;
2323
use PhpCsFixer\Finder;
2424
use PhpCsFixer\Fixer\DeprecatedFixerInterface;
2525
use PhpCsFixerCustomFixers\Fixer\AbstractFixer;
@@ -36,7 +36,7 @@
3636

3737
$license->save();
3838

39-
$ruleSet = Php80::create()
39+
$ruleSet = Php81::create()
4040
->withHeader($license->header())
4141
->withRules(Rules::fromArray([
4242
'@PHP7x0Migration' => true,

README.md

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

6363
## Requirement
6464

65-
* PHP >= 8.0
65+
* PHP >= 8.1
6666

6767
## Installation
6868

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@
7676
}
7777
],
7878
"require": {
79-
"php": ">=8.0",
79+
"php": ">=8.1",
8080
"ext-simplexml": "*",
8181
"guzzlehttp/guzzle": "^7.10",
8282
"guzzlehttp/uri-template": "^1.0",
8383
"psr/simple-cache": "^1.0 || ^2.0 || ^3.0",
84-
"symfony/options-resolver": "^5.4 || ^6.0 || ^7.0 || ^8.0"
84+
"symfony/options-resolver": "^6.4 || ^7.0 || ^8.0"
8585
},
8686
"require-dev": {
8787
"bamarni/composer-bin-plugin": "^1.9",
@@ -93,12 +93,12 @@
9393
"ergebnis/rector-rules": "^1.9",
9494
"fakerphp/faker": "^1.24",
9595
"guanguans/monorepo-builder-worker": "^2.2 || ^3.0",
96-
"illuminate/collections": "^9.52 || ^10.0 || ^11.0 || ^12.0",
97-
"illuminate/support": "^9.52 || ^10.0 || ^11.0 || ^12.0",
96+
"illuminate/collections": "^10.49 || ^11.0 || ^12.0",
97+
"illuminate/support": "^10.49 || ^11.0 || ^12.0",
9898
"mockery/mockery": "^1.6",
9999
"pestphp/pest": "^1.23 || ^2.0 || ^3.0 || ^4.0",
100100
"php-mock/php-mock-phpunit": "^2.14",
101-
"phpbench/phpbench": "^1.2",
101+
"phpbench/phpbench": "^1.4",
102102
"phpstan/extension-installer": "^1.4",
103103
"phpstan/phpstan": "^2.1",
104104
"phpstan/phpstan-deprecation-rules": "^2.0",
@@ -110,13 +110,13 @@
110110
"shipmonk/composer-dependency-analyser": "^1.8",
111111
"shipmonk/phpstan-baseline-per-identifier": "^2.3",
112112
"spaze/phpstan-disallowed-calls": "^4.7",
113-
"symfony/var-dumper": "^6.0 || ^7.0 || ^8.0",
114-
"symfony/yaml": "^6.0 || ^7.0 || ^8.0",
113+
"symfony/var-dumper": "^6.4 || ^7.0 || ^8.0",
114+
"symfony/yaml": "^6.4 || ^7.0 || ^8.0",
115115
"symplify/phpstan-extensions": "^12.0",
116116
"symplify/phpstan-rules": "^14.9",
117117
"tomasvotruba/class-leak": "^2.1",
118118
"tomasvotruba/type-coverage": "^2.1",
119-
"yamadashy/phpstan-friendly-formatter": "^1.2"
119+
"yamadashy/phpstan-friendly-formatter": "^1.4"
120120
},
121121
"conflict": {
122122
"pestphp/pest": "^4.0"

rector.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@
9393
->withFluentCallNewLine()
9494
->withAttributesSets(phpunit: true, all: true)
9595
->withComposerBased(phpunit: true)
96-
->withPhpVersion(PhpVersion::PHP_80)
97-
->withDowngradeSets(php80: true)
98-
->withPhpSets(php80: true)
96+
->withPhpVersion(PhpVersion::PHP_81)
97+
->withDowngradeSets(php81: true)
98+
->withPhpSets(php81: true)
9999
->withSets([
100100
PHPUnitSetList::PHPUNIT_90,
101101
])

0 commit comments

Comments
 (0)