Skip to content

Commit ac48fd0

Browse files
committed
lintfix
1 parent 23fd722 commit ac48fd0

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

tests/migrations/2023_12_13_190445_create_cache_table.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
use Illuminate\Database\Migrations\Migration;
46
use Illuminate\Database\Schema\Blueprint;
57
use Illuminate\Support\Facades\Schema;
68

7-
return new class extends Migration
8-
{
9+
return new class() extends Migration {
910
/**
1011
* Run the migrations.
1112
*/
1213
public function up(): void
1314
{
14-
Schema::create('cache', function (Blueprint $table) {
15-
$table->string('key')->primary();
15+
Schema::create('cache', static function (Blueprint $table) {
16+
$table->string('key')
17+
->primary();
1618
$table->mediumText('value');
1719
$table->integer('expiration');
1820
});
1921

20-
Schema::create('cache_locks', function (Blueprint $table) {
21-
$table->string('key')->primary();
22+
Schema::create('cache_locks', static function (Blueprint $table) {
23+
$table->string('key')
24+
->primary();
2225
$table->string('owner');
2326
$table->integer('expiration');
2427
});

0 commit comments

Comments
 (0)