laravel-ide-helper icon indicating copy to clipboard operation
laravel-ide-helper copied to clipboard

newQuery and newModelQuery are not static methods

Open arno14 opened this issue 1 month ago • 0 comments

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()

arno14 avatar Jun 10 '24 13:06 arno14