Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running "Sort Imports" on file with nested imports breaks imports. #6

Open
vilocity-brian opened this issue Jul 24, 2024 · 0 comments

Comments

@vilocity-brian
Copy link

I have multiple places where the extension has previously nested imports but now wen the "Sort Imports" action is used, it breaks the imports. Example

<?php

namespace App\Orchid\Screens\PurchaseOrder;

use Illuminate\Http\Request;
use Orchid\Support\Facades\Layout;

use App\Models\{
    PurchaseOrder,
    Inventory
};
use Orchid\Screen\{
    Actions\Link,
    Screen,
    Sight
};

use Orchid\Screen\Fields\Group;

Results in

<?php

namespace App\Orchid\Screens\PurchaseOrder;

use App\Models\{
use Orchid\Screen\{

use Illuminate\Http\Request;
    PurchaseOrder,
    Inventory
};
use Orchid\Screen\Fields\Group;
    Actions\Link,
    Screen,
    Sight
};

use Orchid\Support\Facades\Layout;

I'm on version 0.6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant