From 7c114c72e447407b049c4c6249da347904f0ba36 Mon Sep 17 00:00:00 2001 From: Ovidiu U Date: Wed, 22 Apr 2026 12:03:51 +0100 Subject: [PATCH] style: add void return type to postcodes migration closures --- .../migrations/2026_04_22_100000_create_postcodes_table.php | 2 +- database/migrations/2026_04_22_100001_create_outcodes_table.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/database/migrations/2026_04_22_100000_create_postcodes_table.php b/database/migrations/2026_04_22_100000_create_postcodes_table.php index 7177ebd..cd50ed0 100644 --- a/database/migrations/2026_04_22_100000_create_postcodes_table.php +++ b/database/migrations/2026_04_22_100000_create_postcodes_table.php @@ -8,7 +8,7 @@ return new class extends Migration { public function up(): void { - Schema::create('postcodes', function (Blueprint $table) { + Schema::create('postcodes', function (Blueprint $table): void { $table->string('postcode', 7)->primary()->comment('Normalised: uppercase, no spaces'); $table->string('outcode', 4)->index(); $table->decimal('lat', 10, 7); diff --git a/database/migrations/2026_04_22_100001_create_outcodes_table.php b/database/migrations/2026_04_22_100001_create_outcodes_table.php index 4c5e579..024776f 100644 --- a/database/migrations/2026_04_22_100001_create_outcodes_table.php +++ b/database/migrations/2026_04_22_100001_create_outcodes_table.php @@ -8,7 +8,7 @@ return new class extends Migration { public function up(): void { - Schema::create('outcodes', function (Blueprint $table) { + Schema::create('outcodes', function (Blueprint $table): void { $table->string('outcode', 4)->primary(); $table->decimal('lat', 10, 7); $table->decimal('lng', 10, 7);