From 4cd083baa2175efc40bed0ee3a44e528cf21cb41 Mon Sep 17 00:00:00 2001 From: huangzhhui Date: Sat, 8 Jun 2019 14:27:56 +0800 Subject: [PATCH] Optimized return type of template --- src/database/src/Migrations/stubs/blank.stub | 8 ++------ src/database/src/Migrations/stubs/create.stub | 8 ++------ src/database/src/Migrations/stubs/update.stub | 8 ++------ 3 files changed, 6 insertions(+), 18 deletions(-) diff --git a/src/database/src/Migrations/stubs/blank.stub b/src/database/src/Migrations/stubs/blank.stub index 43b39d2b3..40b600922 100755 --- a/src/database/src/Migrations/stubs/blank.stub +++ b/src/database/src/Migrations/stubs/blank.stub @@ -8,20 +8,16 @@ class DummyClass extends Migration { /** * Run the migrations. - * - * @return void */ - public function up() + public function up(): void { // } /** * Reverse the migrations. - * - * @return void */ - public function down() + public function down(): void { // } diff --git a/src/database/src/Migrations/stubs/create.stub b/src/database/src/Migrations/stubs/create.stub index 895b91ad6..f11537f88 100755 --- a/src/database/src/Migrations/stubs/create.stub +++ b/src/database/src/Migrations/stubs/create.stub @@ -8,10 +8,8 @@ class DummyClass extends Migration { /** * Run the migrations. - * - * @return void */ - public function up() + public function up(): void { Schema::create('DummyTable', function (Blueprint $table) { $table->bigIncrements('id'); @@ -21,10 +19,8 @@ class DummyClass extends Migration /** * Reverse the migrations. - * - * @return void */ - public function down() + public function down(): void { Schema::dropIfExists('DummyTable'); } diff --git a/src/database/src/Migrations/stubs/update.stub b/src/database/src/Migrations/stubs/update.stub index ed866b32c..62acd1da5 100755 --- a/src/database/src/Migrations/stubs/update.stub +++ b/src/database/src/Migrations/stubs/update.stub @@ -8,10 +8,8 @@ class DummyClass extends Migration { /** * Run the migrations. - * - * @return void */ - public function up() + public function up(): void { Schema::table('DummyTable', function (Blueprint $table) { // @@ -20,10 +18,8 @@ class DummyClass extends Migration /** * Reverse the migrations. - * - * @return void */ - public function down() + public function down(): void { Schema::table('DummyTable', function (Blueprint $table) { //