Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Symfony 7 (4.x) #308

Merged
merged 8 commits into from
Apr 5, 2024
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 execute(InputInterface $input, OutputInterface $output)
protected function myEchoAnnotated(InputInterface $input, OutputInterface $output)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method must be named execute for this test.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, methods named execute will have to add a return type hint.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did that, seems green now, I guess old versions are passing because it is okay to add a function return type in an overriding class even if the base class didn't have it.

{
$one = $input->getArgument('one');
$two = $input->getArgument('two');
Expand Down
Loading