You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Working on https://github.com/tighten/tlint, Tighten's internal code style and formatting tool, we noticed that the pretty printer removes newlines between methods of anonymous classes.
We're attempting a transformation like this:
<?php
use Illuminate\Database\Migrations\Migration;
- class CreateBuyRequestsTable extends Migration+ return new class extends Migration
{
public function up()
{
//
}
public function down()
{
//
}
- }+ };
The code we're using for the transformation looks like this:
Working on https://github.com/tighten/tlint, Tighten's internal code style and formatting tool, we noticed that the pretty printer removes newlines between methods of anonymous classes.
We're attempting a transformation like this:
The code we're using for the transformation looks like this:
It works, except that the new line between the
up()
anddown()
methods is being removed as well.Is this a bug in the printer or are we doing something wrong? Thanks!
The text was updated successfully, but these errors were encountered: