Skip to content

Commit 7d96ff3

Browse files
authored
PHP 8.5 and Symfony 8 compatibility, remove EOLed versions (#682)
* PHP 8.5 compatibility, remove EOLed versions * remove setAccessible calls * fix * simplify
1 parent 71eb2ff commit 7d96ff3

Some content is hidden

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

63 files changed

+113
-113
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
runs-on: ubuntu-latest
7474
strategy:
7575
matrix:
76-
php-versions: ['8.1', '8.2', '8.3', '8.4']
76+
php-versions: ['8.1', '8.2', '8.3', '8.4', '8.5']
7777
fail-fast: false
7878
name: PHP ${{ matrix.php-versions }} Test dev dependencies on ubuntu-latest
7979
steps:
@@ -97,15 +97,15 @@ jobs:
9797

9898
phpunit-lowest:
9999
runs-on: ubuntu-latest
100-
name: PHP 8.4 (lowest) Test on ubuntu-latest
100+
name: PHP 8.5 (lowest) Test on ubuntu-latest
101101
steps:
102102
- name: Checkout
103103
uses: actions/checkout@v4
104104

105105
- name: Setup PHP
106106
uses: shivammathur/setup-php@v2
107107
with:
108-
php-version: '8.4'
108+
php-version: '8.5'
109109
extensions: zip
110110

111111
- name: Install dependencies
@@ -120,7 +120,7 @@ jobs:
120120

121121
phpunit-windows:
122122
runs-on: windows-latest
123-
name: PHP 8.4 Test on windows-latest
123+
name: PHP 8.5 Test on windows-latest
124124
env:
125125
PANTHER_FIREFOX_BINARY: 'C:\Program Files\Mozilla Firefox\firefox.exe'
126126
SKIP_FIREFOX: 1
@@ -131,7 +131,7 @@ jobs:
131131
- name: Setup PHP
132132
uses: shivammathur/setup-php@v2
133133
with:
134-
php-version: '8.4'
134+
php-version: '8.5'
135135
extensions: zip
136136

137137
- name: Install dependencies
@@ -142,15 +142,15 @@ jobs:
142142

143143
phpunit-macos:
144144
runs-on: macos-latest
145-
name: PHP 8.4 Test on macos-latest
145+
name: PHP 8.5 Test on macos-latest
146146
steps:
147147
- name: Checkout
148148
uses: actions/checkout@v4
149149

150150
- name: Setup PHP
151151
uses: shivammathur/setup-php@v2
152152
with:
153-
php-version: '8.4'
153+
php-version: '8.5'
154154
extensions: zip
155155

156156
- name: Install Firefox
@@ -169,9 +169,9 @@ jobs:
169169
runs-on: ubuntu-latest
170170
strategy:
171171
matrix:
172-
php-versions: [ '8.1', '8.2', '8.3', '8.4']
172+
php-versions: ['8.1', '8.2', '8.3', '8.4', '8.5']
173173
fail-fast: false
174-
name: PHP ${{ matrix.php-versions }} (PHPUnit 11) Test on ubuntu-latest
174+
name: PHP ${{ matrix.php-versions }} (PHPUnit 10) Test on ubuntu-latest
175175
steps:
176176
- name: Checkout
177177
uses: actions/checkout@v4

.php-cs-fixer.dist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
$header = <<<'HEADER'
44
This file is part of the Panther project.
55
6-
(c) Kévin Dunglas <[email protected]>
6+
(c) Kévin Dunglas <[email protected]>
77
88
For the full copyright and license information, please view the LICENSE
99
file that was distributed with this source code.

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ CHANGELOG
44
2.3.0
55
-----
66

7+
* Add support for PHP 8.5
8+
* Add support for Symfony 8
79
* Disable dev-tools by default
810

911
2.2.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ If you like this software, help save the (real) panthers by [donating to the Pan
2121

2222
## Credits
2323

24-
Created by [Kévin Dunglas](https://dunglas.fr). Sponsored by [Les-Tilleuls.coop](https://les-tilleuls.coop).
24+
Created by [Kévin Dunglas](https://dunglas.dev). Sponsored by [Les-Tilleuls.coop](https://les-tilleuls.coop).
2525

2626
Panther is built on top of [PHP WebDriver](https://github.com/php-webdriver/php-webdriver) and [several other FOSS libraries](https://symfony.com/blog/introducing-symfony-panther-a-browser-testing-and-web-scrapping-library-for-php#thank-you-open-source).
2727
It has been inspired by [Nightwatch.js](http://nightwatchjs.org/), a WebDriver-based testing tool for JavaScript.

composer.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,33 @@
1414
"authors": [
1515
{
1616
"name": "Kévin Dunglas",
17-
"email": "[email protected]",
18-
"homepage": "https://dunglas.fr"
17+
"email": "[email protected]",
18+
"homepage": "https://dunglas.dev"
1919
},
2020
{
2121
"name": "Symfony Community",
2222
"homepage": "https://symfony.com/contributors"
2323
}
2424
],
25-
"homepage": "https://dunglas.fr",
25+
"homepage": "https://symfony.com/packages/Panther",
2626
"require": {
27-
"php": ">=8.0",
27+
"php": ">=8.1",
2828
"ext-dom": "*",
2929
"ext-libxml": "*",
3030
"php-webdriver/webdriver": "^1.8.2",
31-
"symfony/browser-kit": "^5.4 || ^6.4 || ^7.0",
32-
"symfony/dependency-injection": "^5.4 || ^6.4 || ^7.0",
31+
"symfony/browser-kit": "^6.4 || ^7.3 || ^8.0",
32+
"symfony/dependency-injection": "^6.4 || ^7.3 || ^8.0",
3333
"symfony/deprecation-contracts": "^2.4 || ^3",
34-
"symfony/dom-crawler": "^5.4 || ^6.4 || ^7.0",
34+
"symfony/dom-crawler": "^6.4 || ^7.3 || ^8.0",
3535
"symfony/http-client": "^6.4 || ^7.0",
36-
"symfony/http-kernel": "^5.4 || ^6.4 || ^7.0",
37-
"symfony/process": "^5.4 || ^6.4 || ^7.0"
36+
"symfony/http-kernel": "^6.4 || ^7.3 || ^8.0",
37+
"symfony/process": "^6.4 || ^7.3 || ^8.0"
3838
},
3939
"require-dev": {
40-
"symfony/css-selector": "^5.4 || ^6.4 || ^7.0",
41-
"symfony/framework-bundle": "^5.4 || ^6.4 || ^7.0",
42-
"symfony/mime": "^5.4 || ^6.4 || ^7.0",
43-
"symfony/phpunit-bridge": "^7.2.0"
40+
"symfony/css-selector": "^6.4 || ^7.3 || ^8.0",
41+
"symfony/framework-bundle": "^6.4 || ^7.3 || ^8.0",
42+
"symfony/mime": "^6.4 || ^7.3 || ^8.0",
43+
"symfony/phpunit-bridge": ">=7.3.4"
4444
},
4545
"minimum-stability": "dev",
4646
"prefer-stable": true,

examples/basic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* This file is part of the Panther project.
55
*
6-
* (c) Kévin Dunglas <[email protected]>
6+
* (c) Kévin Dunglas <[email protected]>
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.

src/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* This file is part of the Panther project.
55
*
6-
* (c) Kévin Dunglas <[email protected]>
6+
* (c) Kévin Dunglas <[email protected]>
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.
@@ -50,7 +50,7 @@
5050
use Symfony\Component\Panther\WebDriver\WebDriverMouse;
5151

5252
/**
53-
* @author Kévin Dunglas <[email protected]>
53+
* @author Kévin Dunglas <[email protected]>
5454
* @author Dany Maillard <[email protected]>
5555
*
5656
* @method PantherCrawler getCrawler()

src/Cookie/CookieJar.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* This file is part of the Panther project.
55
*
6-
* (c) Kévin Dunglas <[email protected]>
6+
* (c) Kévin Dunglas <[email protected]>
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.
@@ -22,7 +22,7 @@
2222
use Symfony\Component\Panther\ExceptionThrower;
2323

2424
/**
25-
* @author Kévin Dunglas <[email protected]>
25+
* @author Kévin Dunglas <[email protected]>
2626
*/
2727
final class CookieJar extends BaseCookieJar
2828
{

src/DomCrawler/Crawler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* This file is part of the Panther project.
55
*
6-
* (c) Kévin Dunglas <[email protected]>
6+
* (c) Kévin Dunglas <[email protected]>
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.
@@ -24,7 +24,7 @@
2424
use Symfony\Component\Panther\ExceptionThrower;
2525

2626
/**
27-
* @author Kévin Dunglas <[email protected]>
27+
* @author Kévin Dunglas <[email protected]>
2828
*/
2929
final class Crawler extends BaseCrawler implements WebDriverElement
3030
{

src/DomCrawler/Field/ChoiceFormField.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* This file is part of the Panther project.
55
*
6-
* (c) Kévin Dunglas <[email protected]>
6+
* (c) Kévin Dunglas <[email protected]>
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.
@@ -21,7 +21,7 @@
2121
use Symfony\Component\Panther\WebDriver\WebDriverCheckbox;
2222

2323
/**
24-
* @author Kévin Dunglas <[email protected]>
24+
* @author Kévin Dunglas <[email protected]>
2525
*/
2626
final class ChoiceFormField extends BaseChoiceFormField
2727
{

0 commit comments

Comments
 (0)