Skip to content

Commit 1ba58dd

Browse files
[Dep] Update to php 8.1 requirement (manual) (#1374)
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
1 parent 505986d commit 1ba58dd

16 files changed

Lines changed: 35 additions & 18 deletions

File tree

.github/workflows/build_scoped_rector.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
-
3636
uses: shivammathur/setup-php@v2
3737
with:
38-
php-version: 8.0
38+
php-version: 8.1
3939
coverage: none
4040

4141
# fixes https://github.com/rectorphp/rector/pull/4559/checks?check_run_id=1359814403, see https://github.com/shivammathur/setup-php#composer-github-oauth
@@ -58,6 +58,17 @@ jobs:
5858
# 2. downgrade rector
5959
- run: sh build/downgrade-rector.sh rector-build
6060

61+
# scoped using php-scoper.phar which require #[\ReturnTypeWillChange] inside so use php 8.0 for scoping
62+
-
63+
uses: shivammathur/setup-php@v2
64+
with:
65+
php-version: 8.0
66+
coverage: none
67+
68+
# fixes https://github.com/rectorphp/rector/pull/4559/checks?check_run_id=1359814403, see https://github.com/shivammathur/setup-php#composer-github-oauth
69+
env:
70+
COMPOSER_TOKEN: ${{ secrets.ACCESS_TOKEN }}
71+
6172
# 3. prefix classes
6273
- run: sh build/build-rector-scoped.sh rector-build rector-prefixed-downgraded
6374

.github/workflows/code_analysis.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
-
6060
uses: shivammathur/setup-php@v2
6161
with:
62-
php-version: 8.0
62+
php-version: 8.1
6363
coverage: none
6464

6565
- uses: "ramsey/composer-install@v1"

.github/workflows/code_analysis_no_dev.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
# see https://github.com/shivammathur/setup-php
3131
- uses: shivammathur/setup-php@v2
3232
with:
33-
php-version: 8.0
33+
php-version: 8.1
3434
coverage: none
3535

3636
# must be removed, as local config is missing dev dependencies

.github/workflows/e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
php_version: ['8.0']
24+
php_version: ['8.1']
2525
directory:
2626
- 'e2e/template-extends'
2727
- 'e2e/plain-views'

.github/workflows/packages_tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
-
4343
uses: shivammathur/setup-php@v2
4444
with:
45-
php-version: 8.0
45+
php-version: 8.1
4646
coverage: none
4747

4848
- run: composer config minimum-stability dev

.github/workflows/php_linter.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
-
1919
uses: shivammathur/setup-php@v2
2020
with:
21-
php-version: 8.0
21+
php-version: 8.1
2222
coverage: none
2323

2424
- run: composer create-project php-parallel-lint/php-parallel-lint php-parallel-lint

.github/workflows/rector.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,16 @@ jobs:
5151
uses: shivammathur/setup-php@v2
5252
with:
5353
# PHP 7.3 is required, so Rector's code is PHP 7.3 compatible even after refactoring
54-
php-version: 8.0
54+
php-version: 8.1
5555
coverage: none
5656

5757
- run: composer install --no-progress --ansi
5858

5959
## First run Rector - here can't be --dry-run !!! it would stop the job with it and not commit anything in the future
60-
- run: bin/rector process ${{ matrix.paths }} --ansi --no-progress-bar
60+
# temporary disable rectify as splitted from https://github.com/rectorphp/rector-src/pull/1364
61+
# - run: bin/rector process ${{ matrix.paths }} --ansi --no-progress-bar
6162

62-
- run: vendor/bin/ecs check --fix --ansi
63+
# - run: vendor/bin/ecs check --fix --ansi
6364

6465
# see https://github.com/EndBug/add-and-commit
6566
-

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
php: ['8.0']
18+
php: ['8.1']
1919
path:
2020
- tests
2121
- rules-tests

.github/workflows/weekly_pull_requests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
-
4545
uses: shivammathur/setup-php@v2
4646
with:
47-
php-version: 8.0
47+
php-version: 8.1
4848
coverage: none
4949

5050
- uses: "ramsey/composer-install@v1"

build/target-repository/.github/workflows/along_other_packages.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
php_version: ['7.1', '7.2', '7.3', '7.4', '8.0']
16+
php_version: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
1717
commands:
1818
-
1919
name: 'Composer Dependency'

0 commit comments

Comments
 (0)