Skip to content

Commit 111bed0

Browse files
Add support for PHP 8.5 and Symfony 8
1 parent cf6c03a commit 111bed0

File tree

5 files changed

+27
-20
lines changed

5 files changed

+27
-20
lines changed

.github/workflows/static.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ on:
77
jobs:
88
phpstan:
99
name: PHPStan
10-
runs-on: ubuntu-22.04
10+
runs-on: ubuntu-25.04
1111

1212
steps:
1313
- name: Checkout Code
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v6
1515

1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2

.github/workflows/tests.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ on:
77
jobs:
88
tests:
99
name: PHP ${{ matrix.php }}; Symfony ${{ matrix.symfony }}
10-
runs-on: ubuntu-22.04
10+
runs-on: ubuntu-24.04
1111

1212
strategy:
1313
matrix:
14-
php: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
15-
symfony: ['4', '5', '6', '7']
14+
php: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
15+
symfony: ['5', '6', '7', '8']
1616
exclude:
1717
- php: '7.4'
1818
symfony: '6'
@@ -27,7 +27,7 @@ jobs:
2727

2828
steps:
2929
- name: Checkout Code
30-
uses: actions/checkout@v4
30+
uses: actions/checkout@v6
3131

3232
- uses: browser-actions/setup-chrome@v1
3333
with:
@@ -45,20 +45,12 @@ jobs:
4545
- name: Setup Problem Matchers
4646
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
4747

48-
- name: Select Symfony 4
49-
uses: nick-invision/retry@v3
50-
with:
51-
timeout_minutes: 5
52-
max_attempts: 5
53-
command: composer require "symfony/filesystem:^4.0" "symfony/process:^4.0" "symfony/var-dumper:^4.0" --dev --no-update --no-interaction
54-
if: "matrix.symfony == '4'"
55-
5648
- name: Select Symfony 5
5749
uses: nick-invision/retry@v3
5850
with:
5951
timeout_minutes: 5
6052
max_attempts: 5
61-
command: composer require "symfony/filesystem:^5.0" "symfony/process:^5.0" "symfony/var-dumper:^5.0" --dev --no-update --no-interaction
53+
command: composer require "symfony/filesystem:^5.4" "symfony/process:^5.4" "symfony/var-dumper:^5.4" --dev --no-update --no-interaction
6254
if: "matrix.symfony == '5'"
6355

6456
- name: Select Symfony 6
@@ -77,6 +69,14 @@ jobs:
7769
command: composer require "symfony/filesystem:^7.0" "symfony/process:^7.0" "symfony/var-dumper:^7.0" --dev --no-update --no-interaction
7870
if: "matrix.symfony == '7'"
7971

72+
- name: Select Symfony 8
73+
uses: nick-invision/retry@v3
74+
with:
75+
timeout_minutes: 5
76+
max_attempts: 5
77+
command: composer require "symfony/filesystem:^8.0" "symfony/process:^8.0" "symfony/var-dumper:^8.0" --dev --no-update --no-interaction
78+
if: "matrix.symfony == '8'"
79+
8080
- name: Install Dependencies
8181
uses: nick-invision/retry@v3
8282
with:

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# CHANGELOG
22

33

4+
## 1.15.0 (UPCOMING)
5+
6+
* Add PHP 8.5 support
7+
* Add support for using Symfony 8 components
8+
* Remove support for Symfony 4 components
9+
10+
411
## 1.14.0 (2025-05-28)
512

613
* Use more specific return type in `PageScreenshot::getException`

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Happy browsing!
2424

2525
## Requirements
2626

27-
Requires PHP 7.4-8.4 and a Chrome/Chromium 65+ executable.
27+
Requires PHP 7.4-8.5 and a Chrome/Chromium 65+ executable.
2828

2929
Note that the library is only tested on Linux but is compatible with macOS and Windows.
3030

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@
1717
],
1818
"require": {
1919
"php": "^7.4.15 || ^8.0.2",
20-
"chrome-php/wrench": "^1.7",
20+
"chrome-php/wrench": "^1.8",
2121
"evenement/evenement": "^3.0.1",
2222
"monolog/monolog": "^1.27.1 || ^2.8 || ^3.2",
2323
"psr/log": "^1.1 || ^2.0 || ^3.0",
24-
"symfony/filesystem": "^4.4 || ^5.0 || ^6.0 || ^7.0",
24+
"symfony/filesystem": "^5.4 || ^6.0 || ^7.0 || ^6.0",
2525
"symfony/polyfill-mbstring": "^1.26",
26-
"symfony/process": "^4.4 || ^5.0 || ^6.0 || ^7.0"
26+
"symfony/process": "^5.4 || ^6.0 || ^7.0 || ^8.0"
2727
},
2828
"require-dev":{
2929
"bamarni/composer-bin-plugin": "^1.8.2",
3030
"phpunit/phpunit": "^9.6.3 || ^10.0.12",
31-
"symfony/var-dumper": "^4.4 || ^5.0 || ^6.0 || ^7.0"
31+
"symfony/var-dumper": "^5.4 || ^6.0 || ^7.0 || ^8.0"
3232
},
3333
"autoload":{
3434
"psr-4" : {

0 commit comments

Comments
 (0)