Skip to content

Commit 21c2f86

Browse files
authored
[php-symfony] add compatibility with Symfony 8 (#25111)
From my tests (with Symfony 8.1), this is all that is needed. (FWIW: I tested with this OpenApi file https://codeberg.org/gturri/todoList/src/branch/main/openapi.yaml and everything worked well with only this local change) This fixes #25107
1 parent 82e190f commit 21c2f86

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎modules/openapi-generator/src/main/resources/php-symfony/composer.mustache‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@
2929
"ext-json": "*",
3030
"ext-mbstring": "*",
3131
"doctrine/annotations": "^2.0",
32-
"symfony/validator": "^6.4|^7.0",
32+
"symfony/validator": "^6.4|^7.0|^8.0",
3333
"jms/serializer-bundle": "^5.4",
34-
"symfony/framework-bundle": "^6.4|^7.0"
34+
"symfony/framework-bundle": "^6.4|^7.0|^8.0"
3535
},
3636
"require-dev": {
3737
"phpunit/phpunit": "^10.5|^11.0",
3838
"friendsofphp/php-cs-fixer": "*",
39-
"symfony/browser-kit": "^6.4|7.0",
40-
"symfony/yaml": "^6.4|^7.0",
39+
"symfony/browser-kit": "^6.4|7.0|^8.0",
40+
"symfony/yaml": "^6.4|^7.0|^8.0",
4141
"hoa/regex": "~1.0"
4242
},
4343
"autoload": {

‎samples/server/petstore/php-symfony/SymfonyBundle-php/composer.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
"ext-json": "*",
2222
"ext-mbstring": "*",
2323
"doctrine/annotations": "^2.0",
24-
"symfony/validator": "^6.4|^7.0",
24+
"symfony/validator": "^6.4|^7.0|^8.0",
2525
"jms/serializer-bundle": "^5.4",
26-
"symfony/framework-bundle": "^6.4|^7.0"
26+
"symfony/framework-bundle": "^6.4|^7.0|^8.0"
2727
},
2828
"require-dev": {
2929
"phpunit/phpunit": "^10.5|^11.0",
3030
"friendsofphp/php-cs-fixer": "*",
31-
"symfony/browser-kit": "^6.4|7.0",
32-
"symfony/yaml": "^6.4|^7.0",
31+
"symfony/browser-kit": "^6.4|7.0|^8.0",
32+
"symfony/yaml": "^6.4|^7.0|^8.0",
3333
"hoa/regex": "~1.0"
3434
},
3535
"autoload": {

0 commit comments

Comments
 (0)