Closed flatcapco closed 1 month ago
Could you create reproducible code at https://getrector.com/demo ? Thank you.
Could you create reproducible code at https://getrector.com/demo ? Thank you.
I'm not sure how to make a useful demo for this sorry
Just guessing, it seems you're using in template syntax,
@if ($discountCode->type === DiscountUserType::SYSTEM)
Example
@endif
which is not a native php code, I guess you can just skip the file
Bug Report
The enum import is being removed from within a Laravel Volt file when running Rector.
Minimal PHP Code Causing Issue
And the enum code:
My rector config:
Expected Behaviour
I'd expect this import to be respected. Similar to my bug report yesterday I carefully checked and the namespace and case is the same so I believe this is a different false positive issue.