Skip to content

Commit 1aa5cdf

Browse files
authored
Adds types to migrations (#171)
1 parent c0dd098 commit 1aa5cdf

3 files changed

+6
-18
lines changed

database/migrations/2019_05_03_000001_create_customers_table.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ class CreateCustomersTable extends Migration
88
{
99
/**
1010
* Run the migrations.
11-
*
12-
* @return void
1311
*/
14-
public function up()
12+
public function up(): void
1513
{
1614
Schema::create('customers', function (Blueprint $table) {
1715
$table->id();
@@ -26,10 +24,8 @@ public function up()
2624

2725
/**
2826
* Reverse the migrations.
29-
*
30-
* @return void
3127
*/
32-
public function down()
28+
public function down(): void
3329
{
3430
Schema::dropIfExists('customers');
3531
}

database/migrations/2019_05_03_000002_create_subscriptions_table.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ class CreateSubscriptionsTable extends Migration
88
{
99
/**
1010
* Run the migrations.
11-
*
12-
* @return void
1311
*/
14-
public function up()
12+
public function up(): void
1513
{
1614
Schema::create('subscriptions', function (Blueprint $table) {
1715
$table->id();
@@ -33,10 +31,8 @@ public function up()
3331

3432
/**
3533
* Reverse the migrations.
36-
*
37-
* @return void
3834
*/
39-
public function down()
35+
public function down(): void
4036
{
4137
Schema::dropIfExists('subscriptions');
4238
}

database/migrations/2019_05_03_000003_create_receipts_table.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ class CreateReceiptsTable extends Migration
88
{
99
/**
1010
* Run the migrations.
11-
*
12-
* @return void
1311
*/
14-
public function up()
12+
public function up(): void
1513
{
1614
Schema::create('receipts', function (Blueprint $table) {
1715
$table->id();
@@ -34,10 +32,8 @@ public function up()
3432

3533
/**
3634
* Reverse the migrations.
37-
*
38-
* @return void
3935
*/
40-
public function down()
36+
public function down(): void
4137
{
4238
Schema::dropIfExists('receipts');
4339
}

0 commit comments

Comments
 (0)