Skip to content

Commit 5a98a21

Browse files
authored
feat(core): support php 8.5 (#1733)
1 parent 9c82b71 commit 5a98a21

38 files changed

+49
-50
lines changed

.github/workflows/coding-conventions.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
pull_request:
55
workflow_dispatch:
66

7-
# CSFixer and Rector are temporarily disabled until they have proper PHP 8.4 support
87
jobs:
98
check-style:
109
name: Run style check
@@ -15,12 +14,12 @@ jobs:
1514
- name: Setup PHP
1615
uses: shivammathur/setup-php@v2
1716
with:
18-
php-version: 8.4
17+
php-version: 8.5
1918
coverage: none
2019

2120
- name: Install dependencies
2221
run: |
23-
composer update --prefer-dist --no-interaction
22+
composer update --prefer-dist --no-interaction --ignore-platform-reqs
2423
composer mago:install-binary
2524
2625
- name: Run Mago
@@ -46,7 +45,7 @@ jobs:
4645
- name: Setup PHP
4746
uses: shivammathur/setup-php@v2
4847
with:
49-
php-version: 8.4
48+
php-version: 8.5
5049
coverage: none
5150

5251
- name: Install composer dependencies
@@ -65,7 +64,7 @@ jobs:
6564
# - name: Setup PHP
6665
# uses: shivammathur/setup-php@v2
6766
# with:
68-
# php-version: 8.4
67+
# php-version: 8.5
6968
# coverage: none
7069
#
7170
# - name: Install composer dependencies

.github/workflows/integration-tests-windows.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
php:
19-
- 8.4
19+
- 8.5
2020
os:
2121
- windows-latest
2222
env:
@@ -55,7 +55,7 @@ jobs:
5555
os:
5656
- windows-latest
5757
php:
58-
- 8.4
58+
- 8.5
5959
database:
6060
- sqlite
6161
- mysql
@@ -84,7 +84,7 @@ jobs:
8484
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
8585
8686
- name: Install dependencies
87-
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction
87+
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --ignore-platform-reqs
8888

8989
- name: "Setup Redis"
9090
if: ${{ matrix.os != 'windows-latest' }}

.github/workflows/integration-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
php:
23-
- 8.4
23+
- 8.5
2424
os:
2525
- ubuntu-latest
2626
# - windows-latest
@@ -59,7 +59,7 @@ jobs:
5959
- ubuntu-latest
6060
# - windows-latest
6161
php:
62-
- 8.4
62+
- 8.5
6363
database:
6464
- sqlite
6565
- mysql
@@ -90,7 +90,7 @@ jobs:
9090
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
9191
9292
- name: Install dependencies
93-
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction
93+
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --ignore-platform-reqs
9494

9595
- name: "Setup Redis"
9696
if: ${{ matrix.os != 'windows-latest' }}

.github/workflows/isolated-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up PHP
1818
uses: shivammathur/setup-php@v2
1919
with:
20-
php-version: 8.4
20+
php-version: 8.5
2121
coverage: none
2222

2323
- uses: actions/checkout@v4
@@ -43,7 +43,7 @@ jobs:
4343
- ubuntu-latest
4444
package: ${{ fromJson(needs.get_packages.outputs.matrix) }}
4545
php:
46-
- 8.4
46+
- 8.5
4747
stability:
4848
- prefer-stable
4949
- prefer-lowest
@@ -77,7 +77,7 @@ jobs:
7777
run: |
7878
./bin/build-changed-packages
7979
cd "packages/${{ matrix.package.basename }}"
80-
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
80+
composer update --${{ matrix.stability }} --prefer-dist --no-interaction --ignore-platform-reqs
8181
8282
- name: Execute tests
8383
run: phpunit -c "packages/${{ matrix.package.basename }}/phpunit.xml"

.github/workflows/subsplit-packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set Up PHP
1818
uses: shivammathur/setup-php@v2
1919
with:
20-
php-version: 8.4
20+
php-version: 8.5
2121
coverage: none
2222

2323
- uses: actions/checkout@v4

.github/workflows/validate-packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup PHP
1919
uses: shivammathur/setup-php@v2
2020
with:
21-
php-version: 8.4
21+
php-version: 8.5
2222
extensions: dom, curl, libxml, mbstring, pcntl, fileinfo, intl
2323
coverage: none
2424

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"monolog/monolog": "^3.7.0",
2525
"nette/php-generator": "^4.1.6",
2626
"nikic/php-parser": "^5.3",
27-
"php": "^8.4",
27+
"php": "^8.5",
2828
"psr-discovery/http-client-implementations": "^1.4",
2929
"psr-discovery/http-factory-implementations": "^1.2",
3030
"psr/cache": "^3.0",
@@ -49,6 +49,7 @@
4949
"adam-paterson/oauth2-slack": "^1.1",
5050
"aws/aws-sdk-php": "^3.338.0",
5151
"azure-oss/storage-blob-flysystem": "^1.2",
52+
"brianium/paratest": "^7.14",
5253
"carthage-software/mago": "1.0.0-beta.28",
5354
"depotwarehouse/oauth2-twitch": "^1.3",
5455
"guzzlehttp/psr7": "^2.6.1",
@@ -87,8 +88,7 @@
8788
"tempest/blade": "dev-main",
8889
"thenetworg/oauth2-azure": "^2.2",
8990
"twig/twig": "^3.16",
90-
"wohali/oauth2-discord-new": "^1.2",
91-
"brianium/paratest": "^7.14"
91+
"wohali/oauth2-discord-new": "^1.2"
9292
},
9393
"replace": {
9494
"tempest/auth": "self.version",

packages/auth/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "tempest/auth",
33
"description": "A flexible authentication package for Tempest, providing authentication and authorization.",
44
"require": {
5-
"php": "^8.4",
5+
"php": "^8.5",
66
"tempest/core": "dev-main",
77
"tempest/router": "dev-main",
88
"tempest/database": "dev-main",

packages/cache/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "tempest/cache",
33
"description": "The PHP framework that gets out of your way.",
44
"require": {
5-
"php": "^8.4",
5+
"php": "^8.5",
66
"psr/cache": "^3.0",
77
"symfony/cache": "^7.3",
88
"tempest/core": "dev-main",

packages/clock/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "tempest/clock",
33
"description": "A clock component that handle few simple clock operations.",
44
"require": {
5-
"php": "^8.4",
5+
"php": "^8.5",
66
"psr/clock": "^1.0.0",
77
"tempest/datetime": "dev-main"
88
},

0 commit comments

Comments
 (0)