From 9ee6400e85649a40aa1d92e04d55f523e5275af1 Mon Sep 17 00:00:00 2001 From: Markus Machatschek Date: Wed, 23 Feb 2022 08:25:05 +0100 Subject: [PATCH] Make use of anonymous classes --- composer.json | 18 +++++++++--------- ...19_05_03_000001_create_customer_columns.php | 4 ++-- ...05_03_000002_create_subscriptions_table.php | 4 ++-- ..._000003_create_subscription_items_table.php | 4 ++-- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/composer.json b/composer.json index 3d5c810e..cfb24dea 100644 --- a/composer.json +++ b/composer.json @@ -17,15 +17,15 @@ "php": "^7.3|^8.0", "ext-json": "*", "dompdf/dompdf": "^0.8.6|^1.0.1", - "illuminate/console": "^8.0|^9.0", - "illuminate/contracts": "^8.0|^9.0", - "illuminate/database": "^8.0|^9.0", - "illuminate/http": "^8.0|^9.0", - "illuminate/log": "^8.0|^9.0", - "illuminate/notifications": "^8.0|^9.0", - "illuminate/routing": "^8.0|^9.0", - "illuminate/support": "^8.0|^9.0", - "illuminate/view": "^8.0|^9.0", + "illuminate/console": "^8.37|^9.0", + "illuminate/contracts": "^8.37|^9.0", + "illuminate/database": "^8.37|^9.0", + "illuminate/http": "^8.37|^9.0", + "illuminate/log": "^8.37|^9.0", + "illuminate/notifications": "^8.37|^9.0", + "illuminate/routing": "^8.37|^9.0", + "illuminate/support": "^8.37|^9.0", + "illuminate/view": "^8.37|^9.0", "moneyphp/money": "^3.2|^4.0", "nesbot/carbon": "^2.0", "stripe/stripe-php": "^7.39", diff --git a/database/migrations/2019_05_03_000001_create_customer_columns.php b/database/migrations/2019_05_03_000001_create_customer_columns.php index 5d6afde4..59c400f0 100644 --- a/database/migrations/2019_05_03_000001_create_customer_columns.php +++ b/database/migrations/2019_05_03_000001_create_customer_columns.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateCustomerColumns extends Migration +return new class extends Migration { /** * Run the migrations. @@ -37,4 +37,4 @@ public function down() ]); }); } -} +}; diff --git a/database/migrations/2019_05_03_000002_create_subscriptions_table.php b/database/migrations/2019_05_03_000002_create_subscriptions_table.php index bceb12f7..dad55ca3 100644 --- a/database/migrations/2019_05_03_000002_create_subscriptions_table.php +++ b/database/migrations/2019_05_03_000002_create_subscriptions_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateSubscriptionsTable extends Migration +return new class extends Migration { /** * Run the migrations. @@ -38,4 +38,4 @@ public function down() { Schema::dropIfExists('subscriptions'); } -} +}; diff --git a/database/migrations/2019_05_03_000003_create_subscription_items_table.php b/database/migrations/2019_05_03_000003_create_subscription_items_table.php index ec967910..67fcf3fb 100644 --- a/database/migrations/2019_05_03_000003_create_subscription_items_table.php +++ b/database/migrations/2019_05_03_000003_create_subscription_items_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreateSubscriptionItemsTable extends Migration +return new class extends Migration { /** * Run the migrations. @@ -35,4 +35,4 @@ public function down() { Schema::dropIfExists('subscription_items'); } -} +};