1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Enhancement: Require and use PHP 8.2 (#847)

* Enhancement: Require and use PHP 8.2

* Fix: Set PHP_CS_FIXER_IGNORE_ENV environment variable
This commit is contained in:
Andreas Möller
2023-12-05 12:46:14 +01:00
committed by GitHub
parent d8e6be3be5
commit 48a89648b7
4 changed files with 11 additions and 9 deletions

View File

@@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
php-version:
- "7.3"
- "8.2"
steps:
- name: "Checkout"
@@ -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"
@@ -60,7 +62,7 @@ jobs:
strategy:
matrix:
php-version:
- "7.3"
- "8.2"
steps:
- name: "Checkout"

View File

@@ -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

View File

@@ -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"
@@ -20,7 +20,7 @@
},
"config": {
"platform": {
"php": "7.3.19"
"php": "8.2.0"
},
"sort-packages": true
}

8
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "6a06604e237d3d91d913c5bec9dd657a",
"content-hash": "123d1b93480b076f46b80daa9e55e4f3",
"packages": [],
"packages-dev": [
{
@@ -2109,11 +2109,11 @@
"prefer-stable": false,
"prefer-lowest": false,
"platform": {
"php": "^7.3"
"php": "~8.2.0"
},
"platform-dev": [],
"platform-overrides": {
"php": "7.3.19"
"php": "8.2.0"
},
"plugin-api-version": "2.3.0"
"plugin-api-version": "2.6.0"
}