From 4e2f213d64ec5a2c384c6a0f306e9fd8a5860ace Mon Sep 17 00:00:00 2001 From: "Ralph J. Smit" <59207045+ralphjsmit@users.noreply.github.com> Date: Fri, 30 Aug 2024 12:31:17 +0200 Subject: [PATCH] style: force parentheses on named instantiation --- pint.json | 4 ++++ tests/Fixtures/migrations/create_test_tables.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pint.json b/pint.json index e0aa46e..cdaa12f 100644 --- a/pint.json +++ b/pint.json @@ -14,6 +14,10 @@ "ordered_traits": true, "types_spaces": { "space": "single" + }, + "new_with_parentheses": { + "anonymous_class": false, + "named_class": true } } } \ No newline at end of file diff --git a/tests/Fixtures/migrations/create_test_tables.php b/tests/Fixtures/migrations/create_test_tables.php index 59beae4..33cb1ad 100644 --- a/tests/Fixtures/migrations/create_test_tables.php +++ b/tests/Fixtures/migrations/create_test_tables.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -return new class() extends Migration +return new class extends Migration { public function up(): void {