Skip to content

Commit

Permalink
style: force parentheses on named instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphjsmit committed Aug 30, 2024
1 parent 24a2f78 commit 4e2f213
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pint.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
"ordered_traits": true,
"types_spaces": {
"space": "single"
},
"new_with_parentheses": {
"anonymous_class": false,
"named_class": true
}
}
}
2 changes: 1 addition & 1 deletion tests/Fixtures/migrations/create_test_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 4e2f213

Please sign in to comment.