From 7b3939a70f04fe79da4796b4aa27d13d8dc2b17e Mon Sep 17 00:00:00 2001 From: Greg Anderson Date: Fri, 5 Apr 2024 10:39:03 -0700 Subject: [PATCH] Annotated commands that extend the AnnotatedCommand class (should be very rare?) should override "execute". Not sure why it worked any other way in the past. --- tests/src/ExampleAnnotatedCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/ExampleAnnotatedCommand.php b/tests/src/ExampleAnnotatedCommand.php index c6adae6..3385acb 100644 --- a/tests/src/ExampleAnnotatedCommand.php +++ b/tests/src/ExampleAnnotatedCommand.php @@ -44,7 +44,7 @@ public function myEcho($one, $two = '', $multiple = [], $flip = false) * @usage bet alpha --flip * Concatenate "alpha" and "bet". */ - protected function myEchoAnnotated(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $one = $input->getArgument('one'); $two = $input->getArgument('two');