Skip to content

Commit 6e9d2ac

Browse files
authored
console.stub: remove void return type from handle (#46697)
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.
1 parent f108059 commit 6e9d2ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/Console/stubs/console.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class {{ class }} extends Command
2323
/**
2424
* Execute the console command.
2525
*/
26-
public function handle(): void
26+
public function handle()
2727
{
2828
//
2929
}

0 commit comments

Comments
 (0)