Disable filament upgrade script from importing absolute classes
Is there any way to keep filament v4 upgrade script from turning all usages of
new \App\Models\User;
to use App\Models\User; ... new User;
?Solution:Jump to solution
I think that would be way more work on our side and it can be fixed with Pint.
4 Replies
Solution
I think that would be way more work on our side and it can be fixed with Pint.
Do you mean set some pint configuration to disable it? π Or somehow revert the changes afterwards? I do have pint and rector set up, and was wondering if there is some rule that might help in case the upgrade script uses pint.json or rector.php
We can def add an option to the upgrade script, but it will leave unimported classes everywhere that we add during the upgrade. Might be worse, its up to you
I think its just me making noise and I only have a single project so not worth it, I'll handle it manually π