Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

Commit 239074c

Browse files
authored
Merge pull request #267 from pbories/SupportPHP8
Test project under PHP 8.0
2 parents 41c9828 + ac66ab9 commit 239074c

5 files changed

Lines changed: 8 additions & 14 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,13 @@ jobs:
1414
strategy:
1515
fail-fast: true
1616
matrix:
17-
php: [5.6, 7.0, 7.1, 7.2, 7.3, 7.4]
17+
php: [7.1, 7.2, 7.3, 7.4, 8.0]
1818
symfony: [2.8, 3.4, 4.4, 5.2]
1919
exclude:
20-
- php: 5.6
21-
symfony: 4.4
22-
- php: 7.0
23-
symfony: 4.4
24-
- php: 5.6
25-
symfony: 5.2
26-
- php: 7.0
27-
symfony: 5.2
2820
- php: 7.1
2921
symfony: 5.2
22+
- php: 8.0
23+
symfony: 3.4
3024
steps:
3125
- name: Checkout
3226
uses: actions/checkout@v2

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616
],
1717
"require": {
18-
"php": ">=5.6 || ^7.0",
18+
"php": "^7.1 || ^8.0",
1919
"google/recaptcha": "^1.1",
2020
"symfony/form": "^2.8 || ^3.0 || ^4.0 || ^5.0",
2121
"symfony/framework-bundle": "^2.8 || ^3.0 || ^4.0 || ^5.0",
@@ -25,7 +25,7 @@
2525
"twig/twig": "^1.40 || ^2.9 || ^3.0"
2626
},
2727
"require-dev": {
28-
"phpunit/phpunit": "^5 || ^6 || ^7"
28+
"phpunit/phpunit": "^7 || ^8"
2929
},
3030
"autoload": {
3131
"psr-4": {

tests/DependencyInjection/EWZRecaptchaExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class EWZRecaptchaExtensionTest extends TestCase
1616
/** @var ContainerBuilder */
1717
private $configuration;
1818

19-
protected function tearDown()
19+
protected function tearDown(): void
2020
{
2121
$this->configuration = null;
2222
}

tests/Form/Type/EWZRecaptchaTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class EWZRecaptchaTypeTest extends TestCase
1616
/** @var EWZRecaptchaType */
1717
protected $type;
1818

19-
protected function setUp()
19+
protected function setUp(): void
2020
{
2121
$requestStack = $this->createMock(RequestStack::class);
2222
$localeResolver = new LocaleResolver('de', false, $requestStack);

tests/Form/Type/EWZRecaptchaV3TypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class EWZRecaptchaV3TypeTest extends TestCase
1616
/** @var EWZRecaptchaV3Type */
1717
protected $type;
1818

19-
protected function setUp()
19+
protected function setUp(): void
2020
{
2121
$requestStack = $this->createMock(RequestStack::class);
2222
$this->type = new EWZRecaptchaV3Type('key', true, true, 'www.google.com');

0 commit comments

Comments
 (0)