Skip to content

Commit 7d4001e

Browse files
MatanYadaevMatan Yadaev
and
Matan Yadaev
authored
Support PHP 8.2 (#74)
* add php8.2 to workflows * make php-cs-fixer work on php8.2 Co-authored-by: Matan Yadaev <[email protected]>
1 parent 756999f commit 7d4001e

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

.github/workflows/pest-coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup PHP
2626
uses: shivammathur/setup-php@v2
2727
with:
28-
php-version: 8.1
28+
php-version: 8.2
2929
coverage: xdebug
3030

3131
- name: Install dependencies

.github/workflows/pest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
php: [ 8.1, 8.0 ]
14+
php: [ 8.2, 8.1, 8.0 ]
1515
laravel: [ 9.*, 8.* ]
1616
db: [ 'mysql:8.0', 'mysql:5.7', 'mariadb:10.9' ]
1717
# dependency-version: [prefer-lowest, prefer-stable]

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
- name: Setup PHP
1616
uses: shivammathur/setup-php@v2
1717
with:
18-
php-version: 8.1
18+
php-version: 8.2
1919
coverage: none
2020

2121
- name: Install dependencies
2222
run: composer install --prefer-dist --no-interaction
2323

2424
- name: Run PHP CS Fixer
25-
run: ./vendor/bin/php-cs-fixer fix --allow-risky=yes --diff --dry-run
25+
run: PHP_CS_FIXER_IGNORE_ENV=1 ./vendor/bin/php-cs-fixer fix --allow-risky=yes --diff --dry-run

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
php: [ 8.1, 8.0 ]
14+
php: [ 8.2, 8.1, 8.0 ]
1515

1616
steps:
1717
- name: Checkout code

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
}
3737
},
3838
"scripts": {
39-
"php-cs-fixer": "./vendor/bin/php-cs-fixer fix --allow-risky=yes",
39+
"php-cs-fixer": "PHP_CS_FIXER_IGNORE_ENV=1 ./vendor/bin/php-cs-fixer fix --allow-risky=yes",
4040
"phpstan": "./vendor/bin/phpstan analyse --memory-limit=2G",
4141
"pest": "./vendor/bin/pest",
4242
"pest-coverage": "XDEBUG_MODE=coverage ./vendor/bin/pest --coverage --min=100"

0 commit comments

Comments
 (0)