From 6e9d2ac5015475b59d21843cbae5b8121e03d536 Mon Sep 17 00:00:00 2001 From: apreiml Date: Wed, 5 Apr 2023 15:06:42 +0000 Subject: [PATCH] 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. --- src/Illuminate/Foundation/Console/stubs/console.stub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Foundation/Console/stubs/console.stub b/src/Illuminate/Foundation/Console/stubs/console.stub index f75e4bdbbe73..055b7d83726e 100644 --- a/src/Illuminate/Foundation/Console/stubs/console.stub +++ b/src/Illuminate/Foundation/Console/stubs/console.stub @@ -23,7 +23,7 @@ class {{ class }} extends Command /** * Execute the console command. */ - public function handle(): void + public function handle() { // }