Skip to content

Commit

Permalink
Annotated commands that extend the AnnotatedCommand class (should be …
Browse files Browse the repository at this point in the history
…very rare?) should override "execute". Not sure why it worked any other way in the past.
  • Loading branch information
Greg Anderson committed Apr 5, 2024
1 parent 494cd05 commit 7b3939a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/src/ExampleAnnotatedCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 7b3939a

Please sign in to comment.