Skip to content

Commit 6fbce06

Browse files
committed
Upgrade minimum required PHP version to 8.2
1 parent d7685d2 commit 6fbce06

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+56
-34
lines changed

.github/workflows/.utils.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,12 @@ export -f _run_task
3232
install_property_info_for_version() {
3333
local php_version="$1"
3434
local min_stability="$2"
35+
local dependency_version="$3"
3536

36-
if [ "$php_version" = "8.2" ]; then
37+
if [ "$dependency_version" = "lowest" ]; then
38+
# Prevent usage of TypeInfo, required to test support of LegacyLivePropMetadata
39+
composer require symfony/property-info:6.4.*
40+
elif [ "$php_version" = "8.2" ] ; then
3741
composer require symfony/property-info:7.1.* symfony/type-info:7.2.*
3842
elif [ "$php_version" = "8.3" ]; then
3943
composer require symfony/property-info:7.2.* symfony/type-info:7.2.*

.github/workflows/code-quality.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
strategy:
3939
fail-fast: false
4040
matrix:
41-
php-version: ['8.1']
41+
php-version: ['8.2']
4242
dependency-version: ['']
4343
symfony-version: ['']
4444
minimum-stability: ['stable']
@@ -71,7 +71,7 @@ jobs:
7171
- name: Setup PHP
7272
uses: shivammathur/setup-php@v2
7373
with:
74-
php-version: 8.1
74+
php-version: '8.2'
7575
tools: flex
7676

7777
- name: Get composer cache directory

.github/workflows/functional-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
php-version: ['8.1', '8.2', '8.3', '8.4']
23+
php-version: ['8.2', '8.3', '8.4']
2424
dependency-version: ['']
2525
symfony-version: ['']
2626
minimum-stability: ['stable']
@@ -30,10 +30,10 @@ jobs:
3030
- minimum-stability: 'dev'
3131
php-version: '8.4'
3232
# lowest deps
33-
- php-version: '8.1'
33+
- php-version: '8.2'
3434
dependency-version: 'lowest'
3535
# LTS version of Symfony
36-
- php-version: '8.1'
36+
- php-version: '8.2'
3737
symfony-version: '6.4.*'
3838
env:
3939
SYMFONY_REQUIRE: ${{ matrix.symfony-version || '>=5.4' }}

.github/workflows/toolkit-kits-lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Setup PHP
3939
uses: shivammathur/setup-php@v2
4040
with:
41-
php-version: 8.1
41+
php-version: '8.2'
4242

4343
- name: Install composer packages
4444
uses: ramsey/composer-install@v3

.github/workflows/unit-tests.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
strategy:
2929
fail-fast: false
3030
matrix:
31-
php-version: ['8.1', '8.2', '8.3', '8.4']
31+
php-version: ['8.2', '8.3', '8.4']
3232
dependency-version: ['']
3333
symfony-version: ['']
3434
minimum-stability: ['stable']
@@ -38,16 +38,16 @@ jobs:
3838
- minimum-stability: 'dev'
3939
php-version: '8.4'
4040
# lowest deps
41-
- php-version: '8.1'
41+
- php-version: '8.2'
4242
dependency-version: 'lowest'
4343
# LTS version of Symfony
44-
- php-version: '8.1'
44+
- php-version: '8.2'
4545
symfony-version: '6.4.*'
46-
- php-version: '8.1'
46+
- php-version: '8.2'
4747
symfony-version: '6.4.*'
4848
os: 'windows-latest'
4949
# Explicit Symfony versions
50-
- php-version: '8.1'
50+
- php-version: '8.2'
5151
symfony-version: '6.4.*'
5252
- php-version: '8.2'
5353
symfony-version: '7.3.*' # TODO: change to '7.4' when Symfony 7.4 is released
@@ -111,7 +111,7 @@ jobs:
111111
'(cd src/{} \
112112
&& $COMPOSER_MIN_STAB \
113113
&& $COMPOSER_UP \
114-
&& if [ {} = LiveComponent ]; then install_property_info_for_version \"${{ matrix.php-version }}\" \"${{ matrix.minimum-stability }}\"; fi \
114+
&& if [ {} = LiveComponent ]; then install_property_info_for_version \"${{ matrix.php-version }}\" \"${{ matrix.minimum-stability }}\" \"${{ matrix.dependency-version }}\"; fi \
115115
&& $PHPUNIT)'"
116116
117117
- name: Run packages tests (Windows)
@@ -126,7 +126,7 @@ jobs:
126126
'(cd src/$PACKAGE \
127127
&& $COMPOSER_MIN_STAB \
128128
&& $COMPOSER_UP \
129-
&& if [ "$PACKAGE" = "LiveComponent" ]; then install_property_info_for_version \"${{ matrix.php-version }}\" \"${{ matrix.minimum-stability }}\"; fi \
129+
&& if [ "$PACKAGE" = "LiveComponent" ]; then install_property_info_for_version \"${{ matrix.php-version }}\" \"${{ matrix.minimum-stability }}\" \"${{ matrix.dependency-version }}\"; fi \
130130
&& $PHPUNIT)'; then
131131
FAILED_PACKAGES="$FAILED_PACKAGES $PACKAGE"
132132
fi

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $ git remote add upstream [email protected]:symfony/ux.git
3737

3838
To set up the development environment, you need the following tools:
3939

40-
- [PHP](https://www.php.net/downloads.php) 8.1 or higher
40+
- [PHP](https://www.php.net/downloads.php) 8.2 or higher
4141
- [Composer](https://getcomposer.org/download/)
4242
- [Node.js](https://nodejs.org/en/download/package-manager) 22.11 or higher
4343
- [Corepack](https://github.com/nodejs/corepack)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"dev"
66
],
77
"require-dev": {
8-
"php": ">=8.1",
8+
"php": ">=8.2",
99
"symfony/filesystem": "^6.4|^7.0",
1010
"symfony/finder": "^6.4|^7.0",
1111
"php-cs-fixer/shim": "^3.62"

src/Autocomplete/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## 3.0.0
44

55
- Minimum required Symfony version is now 6.4
6+
- Minimum required PHP version is now 8.2
67

78
## 2.29.0
89

src/Autocomplete/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
}
2525
},
2626
"require": {
27-
"php": ">=8.1",
27+
"php": ">=8.2",
2828
"symfony/dependency-injection": "^6.4|^7.0|^8.0",
2929
"symfony/deprecation-contracts": "^2.5|^3",
3030
"symfony/http-foundation": "^6.4|^7.0|^8.0",

src/Chartjs/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## 3.0.0
44

55
- Minimum required Symfony version is now 6.4
6+
- Minimum required PHP version is now 8.2
67

78
## 2.29.0
89

0 commit comments

Comments
 (0)