Skip to content

Commit

Permalink
Enhancement: Require and use PHP 8.2 (#847)
Browse files Browse the repository at this point in the history
* Enhancement: Require and use PHP 8.2

* Fix: Set PHP_CS_FIXER_IGNORE_ENV environment variable
  • Loading branch information
localheinz authored Dec 5, 2023
1 parent d8e6be3 commit 48a8964
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
php-version:
- "7.3"
- "8.2"

steps:
- name: "Checkout"
Expand Down Expand Up @@ -51,6 +51,8 @@ jobs:

- name: "Run friendsofphp/php-cs-fixer"
run: "vendor/bin/php-cs-fixer fix --ansi --config=.php-cs-fixer.php --diff --dry-run --verbose"
env:
PHP_CS_FIXER_IGNORE_ENV: "1"

tests:
name: "Tests"
Expand All @@ -60,7 +62,7 @@ jobs:
strategy:
matrix:
php-version:
- "7.3"
- "8.2"

steps:
- name: "Checkout"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ https://wiki.php.net/web/mirror

## Code requirements

Code must function on a vanilla PHP 7.3 installation.
Code must function on a vanilla PHP 8.2 installation.
Please keep this in mind before filing a pull request.

## Contributing
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"source": "https://github.com/php/web-php"
},
"require": {
"php": "^7.3"
"php": "~8.2.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.4.0"
Expand All @@ -20,7 +20,7 @@
},
"config": {
"platform": {
"php": "7.3.19"
"php": "8.2.0"
},
"sort-packages": true
}
Expand Down
8 changes: 4 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 48a8964

Please sign in to comment.