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

[10.x] console.stub: remove void return type from handle #46697

Merged
merged 1 commit into from
Apr 5, 2023

Conversation

apreiml
Copy link
Contributor

@apreiml apreiml commented Apr 5, 2023

Return type of a command can be the status code as int. The void type suggests that there is no return type expected. This made me search through code and documentation to check if there's now a different way of passing the exit code.

Hence to avoid confusion I suggest to remove the void type and let the user decide later, if it should be void or int.

Return type of a command can be the status code as int. The void type suggests that there is no return type expected. This made me search through code and documentation to check if there's now a different way of passing the exit code.

Hence to avoid confusion I suggest to remove the void type and let the user decide later, if it should be void or int.
@ankurk91
Copy link
Contributor

ankurk91 commented Apr 5, 2023

I was going to send similar pr, but with int return type

@apreiml apreiml changed the title console.stub: remove void return type from handle [10.x] console.stub: remove void return type from handle Apr 5, 2023
@taylorotwell taylorotwell merged commit 6e9d2ac into laravel:10.x Apr 5, 2023
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.

None yet

3 participants