Skip to content

Commit bbd1f33

Browse files
committed
Upgrade minimum required PHP version to 8.2
1 parent 0bc6bbc commit bbd1f33

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

+68
-44
lines changed

.github/workflows/.utils.sh

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,20 @@ export -f _run_task
3131

3232
install_property_info_for_version() {
3333
local php_version="$1"
34-
local min_stability="$2"
34+
local symfony_version="$2"
35+
local min_stability="$3"
3536

36-
if [ "$php_version" = "8.2" ]; then
37+
if [ "$php_version" = "8.2" ] || [ "$symfony_version" = "6.4.*" ]; 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.3" ] ; then
3741
composer require symfony/property-info:7.1.* symfony/type-info:7.2.*
38-
elif [ "$php_version" = "8.3" ]; then
42+
elif [ "$php_version" = "8.4" ]; then
3943
composer require symfony/property-info:7.2.* symfony/type-info:7.2.*
40-
elif [ "$php_version" = "8.4" ] && [ "$min_stability" = "stable" ]; then
44+
elif [ "$php_version" = "8.5" ] && [ "$min_stability" = "stable" ]; then
4145
composer require symfony/property-info:7.3.* symfony/type-info:7.3.*
42-
elif [ "$php_version" = "8.4" ] && [ "$min_stability" = "dev" ]; then
43-
composer require symfony/property-info:>=7.3 symfony/type-info:>=7.3
46+
elif [ "$php_version" = "8.5" ] && [ "$min_stability" = "dev" ]; then
47+
composer require symfony/property-info:8.0.x-dev symfony/type-info:8.0.x-dev
4448
fi
4549
}
4650
export -f install_property_info_for_version

.github/workflows/code-quality.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
strategy:
4343
fail-fast: false
4444
matrix:
45-
php-version: ['8.1']
45+
php-version: ['8.2']
4646
dependency-version: ['']
4747
symfony-version: ['']
4848
minimum-stability: ['stable']
@@ -75,7 +75,7 @@ jobs:
7575
- name: Setup PHP
7676
uses: shivammathur/setup-php@v2
7777
with:
78-
php-version: 8.1
78+
php-version: '8.2'
7979
tools: flex
8080

8181
- name: Get composer cache directory

.github/workflows/functional-tests.yml

Lines changed: 3 additions & 3 deletions
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.1', '8.2', '8.3', '8.4', '8.5']
24+
php-version: ['8.2', '8.3', '8.4', '8.5']
2525
dependency-version: ['']
2626
symfony-version: ['']
2727
minimum-stability: ['stable']
@@ -31,10 +31,10 @@ jobs:
3131
- minimum-stability: 'dev'
3232
php-version: '8.5'
3333
# lowest deps
34-
- php-version: '8.1'
34+
- php-version: '8.2'
3535
dependency-version: 'lowest'
3636
# LTS version of Symfony
37-
- php-version: '8.1'
37+
- php-version: '8.2'
3838
symfony-version: '6.4.*'
3939
env:
4040
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: 14 additions & 12 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', '8.5']
31+
php-version: ['8.2', '8.3', '8.4', '8.5']
3232
dependency-version: ['']
3333
symfony-version: ['']
3434
minimum-stability: ['stable']
@@ -38,19 +38,21 @@ jobs:
3838
- minimum-stability: 'dev'
3939
php-version: '8.5'
4040
# lowest deps
41-
- php-version: '8.1'
41+
- php-version: '8.2'
4242
dependency-version: 'lowest'
43-
# LTS version of Symfony
44-
- php-version: '8.1'
45-
symfony-version: '6.4.*'
46-
- php-version: '8.1'
47-
symfony-version: '6.4.*'
48-
os: 'windows-latest'
49-
# Explicit Symfony versions
50-
- php-version: '8.1'
43+
44+
# oldest LTS
45+
- php-version: '8.2'
5146
symfony-version: '6.4.*'
47+
48+
# oldest LTS + Windows
49+
- php-version: '8.2'
50+
symfony-version: '6.4.*'
51+
os: 'windows-latest'
52+
5253
- php-version: '8.2'
5354
symfony-version: '7.4.x-dev' # TODO: change to '7.4' when Symfony 7.4 is released
55+
5456
- php-version: '8.5'
5557
symfony-version: '8.0.x-dev' # TODO: change to '8.0' when Symfony 8.0 is released
5658
minimum-stability: 'dev' # TODO: remove when Symfony 8.0 is released
@@ -111,7 +113,7 @@ jobs:
111113
'(cd src/{} \
112114
&& $COMPOSER_MIN_STAB \
113115
&& $COMPOSER_UP \
114-
&& if [ {} = LiveComponent ]; then install_property_info_for_version \"${{ matrix.php-version }}\" \"${{ matrix.minimum-stability }}\"; fi \
116+
&& if [ {} = LiveComponent ]; then install_property_info_for_version \"${{ matrix.php-version }}\" \"${{ matrix.symfony-version }}\" \"${{ matrix.minimum-stability }}\"; fi \
115117
&& $PHPUNIT)'"
116118
117119
- name: Run packages tests (Windows)
@@ -126,7 +128,7 @@ jobs:
126128
'(cd src/$PACKAGE \
127129
&& $COMPOSER_MIN_STAB \
128130
&& $COMPOSER_UP \
129-
&& if [ "$PACKAGE" = "LiveComponent" ]; then install_property_info_for_version \"${{ matrix.php-version }}\" \"${{ matrix.minimum-stability }}\"; fi \
131+
&& if [ "$PACKAGE" = "LiveComponent" ]; then install_property_info_for_version \"${{ matrix.php-version }}\" \"${{ matrix.symfony-version }}\" \"${{ matrix.minimum-stability }}\"; fi \
130132
&& $PHPUNIT)'; then
131133
FAILED_PACKAGES="$FAILED_PACKAGES $PACKAGE"
132134
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.18 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.30
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.30
89

0 commit comments

Comments
 (0)