diff --git a/composer.json b/composer.json index 579222148e..e7427fe7cd 100644 --- a/composer.json +++ b/composer.json @@ -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", @@ -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": { @@ -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" } diff --git a/patches/doctrine-fixtures-bundle.patch b/patches/doctrine-fixtures-bundle.patch new file mode 100644 index 0000000000..976f878130 --- /dev/null +++ b/patches/doctrine-fixtures-bundle.patch @@ -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);