Skip to content

Commit 5d7953f

Browse files
authored
Merge pull request #329 from W0rma/symfony7
Allow Symfony 7
2 parents 39bae03 + 43e1576 commit 5d7953f

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.github/workflows/ci.yaml

+8-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- "8.0"
2323
- "8.1"
2424
- "8.2"
25+
- "8.3"
2526
dependencies:
2627
- "highest"
2728
- "lowest"
@@ -36,10 +37,16 @@ jobs:
3637
symfony-require: "^6.0"
3738
- php-version: 8.2
3839
symfony-require: "^6.0"
40+
- php-version: 8.3
41+
symfony-require: "^6.0"
42+
- php-version: 8.2
43+
symfony-require: "^7.0"
44+
- php-version: 8.3
45+
symfony-require: "^7.0"
3946

4047
steps:
4148
- name: Checkout code
42-
uses: actions/checkout@v2
49+
uses: actions/checkout@v4
4350

4451
- name: "Install PHP"
4552
uses: "shivammathur/setup-php@v2"

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"doctrine/annotations": "^1.13.2 || ^2.0",
2222
"jms/metadata": "^2.0",
2323
"jms/serializer": "^3.18.2",
24-
"symfony/expression-language": "~3.0 || ~4.0 || ~5.0 || ~6.0"
24+
"symfony/expression-language": "~3.0 || ~4.0 || ~5.0 || ~6.0 || ~7.0"
2525
},
2626
"require-dev": {
2727
"phpunit/phpunit": "^7 | ^9.5.10",
@@ -31,8 +31,8 @@
3131
"phpdocumentor/type-resolver": "^1.5.1",
3232
"phpspec/prophecy-phpunit": "^2.0.1",
3333
"phpspec/prophecy": "^1.16",
34-
"symfony/routing": "~3.0 || ~4.0 || ~5.0 || ~6.0",
35-
"symfony/yaml": "~3.0 || ~4.0 || ~5.0 || ~6.0",
34+
"symfony/routing": "~3.0 || ~4.0 || ~5.0 || ~6.0 || ~7.0",
35+
"symfony/yaml": "~3.0 || ~4.0 || ~5.0 || ~6.0 || ~7.0",
3636
"twig/twig": "^1.43 || ^2.13 || ^3.0"
3737
},
3838
"suggest": {

src/Expression/LinkExpressionFunction.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class LinkExpressionFunction implements ExpressionFunctionProviderInterface
1414
*
1515
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint
1616
*/
17-
public function getFunctions()
17+
public function getFunctions(): array
1818
{
1919
return [
2020
new ExpressionFunction('link', static function ($object, $rel, $absolute = false) {

0 commit comments

Comments
 (0)