barryvdh / laravel-ide-helper

IDE Helper for Laravel
MIT License
14.23k stars 1.16k forks source link

Is ide-helper Idempotent ? #1612

Closed MaG21 closed 17 hours ago

MaG21 commented 18 hours ago

Versions:

Question:

Recently I made a change to a property (a type change) and after running php artisan ide-helper:models -W I noticed that ide-helper didn't update the corresponding type in the PHPDoc comment. I was under the impression that every new run will generate the same results regardless.

I could think of a reason or two as of why id-helper preserves the changes. Is there an option that can be used to instruct ide-helper to disregard any changes made and to rewrite the phpdoc (idempotent behaviour).

barryvdh commented 18 hours ago

—reset? Or -RW

MaG21 commented 17 hours ago

Duh. Would you believe me if I tell you that my brain skipped that option ?

Thank you for the fast response.