style: add void return type to postcodes migration closures
This commit is contained in:
@@ -8,7 +8,7 @@ return new class extends Migration
|
|||||||
{
|
{
|
||||||
public function up(): void
|
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('postcode', 7)->primary()->comment('Normalised: uppercase, no spaces');
|
||||||
$table->string('outcode', 4)->index();
|
$table->string('outcode', 4)->index();
|
||||||
$table->decimal('lat', 10, 7);
|
$table->decimal('lat', 10, 7);
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ return new class extends Migration
|
|||||||
{
|
{
|
||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('outcodes', function (Blueprint $table) {
|
Schema::create('outcodes', function (Blueprint $table): void {
|
||||||
$table->string('outcode', 4)->primary();
|
$table->string('outcode', 4)->primary();
|
||||||
$table->decimal('lat', 10, 7);
|
$table->decimal('lat', 10, 7);
|
||||||
$table->decimal('lng', 10, 7);
|
$table->decimal('lng', 10, 7);
|
||||||
|
|||||||
Reference in New Issue
Block a user