laravel-ide-helper
laravel-ide-helper copied to clipboard
newQuery and newModelQuery are not static methods
Versions:
- ide-helper Version: 3.0
- Laravel Version: 10
- PHP Version: 8.2
Description:
the command generate phpdoc as
@method static \Illuminate\Database\Eloquent\Builder|Tool query()
@method static \Illuminate\Database\Eloquent\Builder|Tool newModelQuery()
@method static \Illuminate\Database\Eloquent\Builder|Tool newQuery()
(given the Model class is called "Tool")
but theses methods are not static, only method "query" is https://laravel.com/api/10.x/Illuminate/Database/Eloquent/Model.html#method_query
generated code should be
@method static \Illuminate\Database\Eloquent\Builder|Tool query()
@method \Illuminate\Database\Eloquent\Builder|Tool newModelQuery()
@method \Illuminate\Database\Eloquent\Builder|Tool newQuery()