Skip to content

Adding void return type to command #221

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

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

mamazu
Copy link
Contributor

@mamazu mamazu commented Nov 8, 2023

In Symfony 6 not having this type is deprecated and it can't hurt in 5.4 either. This is not a BC break as Return Type narrowing (the implementation of an interface can have a narrower return type than the interface implementing it) was introduced in 7.4 and the result of the configure method is used nowhere.

@mamazu mamazu changed the title Adding void return type to command Adding void return type to command Nov 8, 2023
@dantleech dantleech merged commit f6142f6 into phpcr:1.x Nov 8, 2023
@dantleech
Copy link
Member

not entirely sure if I still maintain this, but looks good!

@mamazu mamazu deleted the adding_void_to_commands branch November 8, 2023 11:22
@dbu
Copy link
Member

dbu commented Nov 8, 2023

thanks. do we need : int return type declaration for the execute method as well?

@mamazu
Copy link
Contributor Author

mamazu commented Nov 8, 2023

Yes, I will do that as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants