Skip to content

Commit

Permalink
Try to test the bundle with Symfony 7
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Oct 26, 2023
1 parent b37f0ce commit 5b0c169
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
13 changes: 10 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"symfony/validator": "^5.4|^6.0|^7.0"
},
"require-dev": {
"cweagans/composer-patches": "dev-main",
"doctrine/doctrine-fixtures-bundle": "^3.4|4.0.x-dev",
"phpstan/extension-installer": "^1.2",
"phpstan/phpstan": "^1.9",
Expand All @@ -55,7 +56,8 @@
"sort-packages": true,
"allow-plugins": {
"symfony/flex": true,
"phpstan/extension-installer": true
"phpstan/extension-installer": true,
"cweagans/composer-patches": true
}
},
"autoload": {
Expand All @@ -75,7 +77,12 @@
},
"symfony": {
"require": "7.0.0-beta1"
}
},
},
"composer-exit-on-patch-failure": true,
"patches": {
"doctrine/doctrine-fixtures-bundle": [
"patches/doctrine-fixtures-bundle.patch"
]
},
"minimum-stability": "dev"
}
10 changes: 10 additions & 0 deletions patches/doctrine-fixtures-bundle.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- a/Command/LoadDataFixturesDoctrineCommand.php
+++ b/Command/LoadDataFixturesDoctrineCommand.php
@@ -96,7 +96,7 @@ EOT
/**
* @return int
*/
- protected function execute(InputInterface $input, OutputInterface $output)
+ protected function execute(InputInterface $input, OutputInterface $output): int
{
$ui = new SymfonyStyle($input, $output);

0 comments on commit 5b0c169

Please sign in to comment.