From 57d785dba26370ad9b981871411930ccca1dbffd Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Thu, 20 Feb 2025 12:31:22 +1300 Subject: [PATCH] API Update return type to match Symfony 7 (#49) We have determined that this exception to our definition of public API is acceptable, as the likelihood of someone overriding methods in this repository is very low, and this change will allow for a greater range of installations for longer. Co-authored-by: nlighteneddesign --- src/RequireRecipeCommand.php | 2 +- src/UpdateRecipeCommand.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RequireRecipeCommand.php b/src/RequireRecipeCommand.php index ed4d806..a050823 100644 --- a/src/RequireRecipeCommand.php +++ b/src/RequireRecipeCommand.php @@ -51,7 +51,7 @@ public function configure() ); } - public function execute(InputInterface $input, OutputInterface $output) + public function execute(InputInterface $input, OutputInterface $output): int { $recipe = $input->getArgument('recipe'); $constraint = $input->getArgument('version'); diff --git a/src/UpdateRecipeCommand.php b/src/UpdateRecipeCommand.php index 0d5fe57..5cc460a 100644 --- a/src/UpdateRecipeCommand.php +++ b/src/UpdateRecipeCommand.php @@ -35,7 +35,7 @@ public function configure() ); } - public function execute(InputInterface $input, OutputInterface $output) + public function execute(InputInterface $input, OutputInterface $output): int { $recipe = $input->getArgument('recipe'); $constraint = $input->getArgument('version');