Skip to content

Commit

Permalink
console.stub: remove void return type from handle (#46697)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
apreiml authored Apr 5, 2023
1 parent f108059 commit 6e9d2ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Console/stubs/console.stub
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class {{ class }} extends Command
/**
* Execute the console command.
*/
public function handle(): void
public function handle()
{
//
}
Expand Down

0 comments on commit 6e9d2ac

Please sign in to comment.