From 9aa3da67ab477e788a5aae44d90e9022c9271dc7 Mon Sep 17 00:00:00 2001 From: apreiml Date: Wed, 5 Apr 2023 12:10:21 +0200 Subject: [PATCH] console.stub: remove void return type from handle 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() { // }