-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
forceDelete() and restore() should not be static #917
Comments
Hmm. I think they should be simply removed, specifically these two lines laravel-ide-helper/src/Console/ModelsCommand.php Lines 844 to 845 in 18588ea
In my opinion any decent editor/IDE/static code analyzer can infer methods from traits automatically anyway, no need to duplicate this (not so with the other because they're magic mixing in the phpdoc and are fine). |
These two methods are already regular methods on the trait, there's no need to add them and additionally they're not static, so their definition was changed for the worse. The other methods are magic so it's fine to keep them. Fixes barryvdh#917
Made #918 |
You are right, I am using phpstorm and those methods are auto-completed fine without those 2 lines. Thank you. |
These two methods are already regular methods on the trait, there's no need to add them and additionally they're not static, so their definition was changed for the worse. The other methods are magic so it's fine to keep them. Fixes #917
These two methods are already regular methods on the trait, there's no need to add them and additionally they're not static, so their definition was changed for the worse. The other methods are magic so it's fine to keep them. Fixes barryvdh/laravel-ide-helper#917
These two methods are already regular methods on the trait, there's no need to add them and additionally they're not static, so their definition was changed for the worse. The other methods are magic so it's fine to keep them. Fixes barryvdh/laravel-ide-helper#917
These two methods are already regular methods on the trait, there's no need to add them and additionally they're not static, so their definition was changed for the worse. The other methods are magic so it's fine to keep them. Fixes barryvdh/laravel-ide-helper#917
These two methods are already regular methods on the trait, there's no need to add them and additionally they're not static, so their definition was changed for the worse. The other methods are magic so it's fine to keep them. Fixes barryvdh/laravel-ide-helper#917
These two methods are already regular methods on the trait, there's no need to add them and additionally they're not static, so their definition was changed for the worse. The other methods are magic so it's fine to keep them. Fixes barryvdh/laravel-ide-helper#917
When using the
use SoftDeletes;
traitide-helper:model
will add these 2@method
in the phpdoc:Those methods should not be static as they are not defined as static inside the trait.
The text was updated successfully, but these errors were encountered: