Skip to content

Commit 5e6c96f

Browse files
authored
Merge pull request #307 from Seb33300/master
Symfony 7 compatibility
2 parents 704b228 + 01ce73c commit 5e6c96f

File tree

3 files changed

+26
-13
lines changed

3 files changed

+26
-13
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ jobs:
1414
strategy:
1515
fail-fast: true
1616
matrix:
17-
php: [7.1, 7.2, 7.3, 7.4, 8.0, 8.1]
18-
symfony: [2.8, 3.4, 4.4, 5.2, 6.0]
17+
php: [7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2]
18+
symfony: [2.8, 3.4, 4.4, 5.2, 6.0, 7.0]
1919
exclude:
20+
# Symfony 5 requires PHP >= 7.2
2021
- php: 7.1
2122
symfony: 5.2
22-
- php: 8.0
23-
symfony: 3.4
23+
# Symfony 6 requires PHP >= 8.0
2424
- php: 7.1
2525
symfony: 6.0
2626
- php: 7.2
@@ -29,9 +29,22 @@ jobs:
2929
symfony: 6.0
3030
- php: 7.4
3131
symfony: 6.0
32+
# Symfony 7 requires PHP >= 8.2
33+
- php: 7.1
34+
symfony: 7.0
35+
- php: 7.2
36+
symfony: 7.0
37+
- php: 7.3
38+
symfony: 7.0
39+
- php: 7.4
40+
symfony: 7.0
41+
- php: 8.0
42+
symfony: 7.0
43+
- php: 8.1
44+
symfony: 7.0
3245
steps:
3346
- name: Checkout
34-
uses: actions/checkout@v2
47+
uses: actions/checkout@v4
3548

3649
- name: Install PHP
3750
uses: shivammathur/setup-php@v2
@@ -44,7 +57,7 @@ jobs:
4457
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
4558

4659
- name: Cache composer dependencies
47-
uses: actions/cache@v2
60+
uses: actions/cache@v3
4861
with:
4962
path: ${{ steps.composer-cache.outputs.dir }}
5063
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
"require": {
1818
"php": "^7.1 || ^8.0",
1919
"google/recaptcha": "^1.1",
20-
"symfony/form": "^2.8 || ^3.0 || ^4.0 || ^5.0 || ^6.0",
21-
"symfony/framework-bundle": "^2.8 || ^3.0 || ^4.0 || ^5.0 || ^6.0",
22-
"symfony/security-bundle": "^2.8 || ^3.0 || ^4.0 || ^5.0 || ^6.0",
23-
"symfony/validator": "^2.8 || ^3.0 || ^4.0 || ^5.0 || ^6.0",
24-
"symfony/yaml": "^2.8 || ^3.0 || ^4.0 || ^5.0 || ^6.0",
20+
"symfony/form": "^2.8 || ^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
21+
"symfony/framework-bundle": "^2.8 || ^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
22+
"symfony/security-bundle": "^2.8 || ^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
23+
"symfony/validator": "^2.8 || ^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
24+
"symfony/yaml": "^2.8 || ^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
2525
"twig/twig": "^1.40 || ^2.9 || ^3.0"
2626
},
2727
"require-dev": {

src/Validator/Constraints/IsTrue.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ public function __construct(array $options = null, string $message = null, strin
2424
}
2525

2626
/**
27-
* @return string|string[]
27+
* {@inheritdoc}
2828
*/
29-
public function getTargets()
29+
public function getTargets(): string
3030
{
3131
return Constraint::PROPERTY_CONSTRAINT;
3232
}

0 commit comments

Comments
 (0)