File tree 5 files changed +11
-10
lines changed
tests/Console/ModelsCommand
GeneratePhpdocWithForcedFqn/__snapshots__
GeneratePhpdocWithFqn/__snapshots__
SoftDeletes/__snapshots__
5 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file.
6
6
--------------
7
7
8
8
### Fixes
9
+ - Fix return type of methods provided by ` SoftDeletes ` [ #1345 / KentarouTakeda] ( https://github.com/barryvdh/laravel-ide-helper/pull/1345 )
9
10
- Handle PHP 8.1 deprecation warnings when passing ` null ` to ` new \ReflectionClass ` [ #1351 / mfn] ( https://github.com/barryvdh/laravel-ide-helper/pull/1351 )
10
11
- Fix model factory method arguments for Laravel >= 9 [ #1361 / wimski] ( https://github.com/barryvdh/laravel-ide-helper/pull/1361 )
11
12
Original file line number Diff line number Diff line change @@ -1219,7 +1219,7 @@ protected function getSoftDeleteMethods($model)
1219
1219
$ traits = class_uses_recursive ($ model );
1220
1220
if (in_array ('Illuminate \\Database \\Eloquent \\SoftDeletes ' , $ traits )) {
1221
1221
$ modelName = $ this ->getClassNameInDestinationFile ($ model , get_class ($ model ));
1222
- $ builder = $ this ->getClassNameInDestinationFile ($ model , \Illuminate \Database \Query \Builder::class);
1222
+ $ builder = $ this ->getClassNameInDestinationFile ($ model , \Illuminate \Database \Eloquent \Builder::class);
1223
1223
$ this ->setMethod ('withTrashed ' , $ builder . '| ' . $ modelName , []);
1224
1224
$ this ->setMethod ('withoutTrashed ' , $ builder . '| ' . $ modelName , []);
1225
1225
$ this ->setMethod ('onlyTrashed ' , $ builder . '| ' . $ modelName , []);
Original file line number Diff line number Diff line change 89
89
* @method static \Illuminate\Database\Eloquent\Builder|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post newModelQuery()
90
90
* @method static \Illuminate\Database\Eloquent\Builder|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post newQuery()
91
91
* @method static \Illuminate\Database\Eloquent\Builder|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post null(string $unusedParam)
92
- * @method static \Illuminate\Database\Query \Builder|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post onlyTrashed()
92
+ * @method static \Illuminate\Database\Eloquent \Builder|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post onlyTrashed()
93
93
* @method static \Illuminate\Database\Eloquent\Builder|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post query()
94
94
* @method static \Illuminate\Database\Eloquent\Builder|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereBigIntegerNotNullable($value)
95
95
* @method static \Illuminate\Database\Eloquent\Builder|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereBigIntegerNullable($value)
164
164
* @method static \Illuminate\Database\Eloquent\Builder|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereUuidNullable($value)
165
165
* @method static \Illuminate\Database\Eloquent\Builder|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereYearNotNullable($value)
166
166
* @method static \Illuminate\Database\Eloquent\Builder|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereYearNullable($value)
167
- * @method static \Illuminate\Database\Query \Builder|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post withTrashed()
168
- * @method static \Illuminate\Database\Query \Builder|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post withoutTrashed()
167
+ * @method static \Illuminate\Database\Eloquent \Builder|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post withTrashed()
168
+ * @method static \Illuminate\Database\Eloquent \Builder|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post withoutTrashed()
169
169
* @mixin \Eloquent
170
170
*/
171
171
class Post extends Model
Original file line number Diff line number Diff line change 95
95
* @method static EloquentBuilder|Post newModelQuery()
96
96
* @method static EloquentBuilder|Post newQuery()
97
97
* @method static EloquentBuilder|Post null(string $unusedParam)
98
- * @method static QueryBuilder |Post onlyTrashed()
98
+ * @method static EloquentBuilder |Post onlyTrashed()
99
99
* @method static EloquentBuilder|Post query()
100
100
* @method static EloquentBuilder|Post whereBigIntegerNotNullable($value)
101
101
* @method static EloquentBuilder|Post whereBigIntegerNullable($value)
170
170
* @method static EloquentBuilder|Post whereUuidNullable($value)
171
171
* @method static EloquentBuilder|Post whereYearNotNullable($value)
172
172
* @method static EloquentBuilder|Post whereYearNullable($value)
173
- * @method static QueryBuilder |Post withTrashed()
174
- * @method static QueryBuilder |Post withoutTrashed()
173
+ * @method static EloquentBuilder |Post withTrashed()
174
+ * @method static EloquentBuilder |Post withoutTrashed()
175
175
* @mixin Eloquent
176
176
*/
177
177
class Post extends Model
Original file line number Diff line number Diff line change 13
13
* @property integer $id
14
14
* @method static \Illuminate\Database\Eloquent\Builder|Simple newModelQuery()
15
15
* @method static \Illuminate\Database\Eloquent\Builder|Simple newQuery()
16
- * @method static \Illuminate\Database\Query \Builder|Simple onlyTrashed()
16
+ * @method static \Illuminate\Database\Eloquent \Builder|Simple onlyTrashed()
17
17
* @method static \Illuminate\Database\Eloquent\Builder|Simple query()
18
18
* @method static \Illuminate\Database\Eloquent\Builder|Simple whereId($value)
19
- * @method static \Illuminate\Database\Query \Builder|Simple withTrashed()
20
- * @method static \Illuminate\Database\Query \Builder|Simple withoutTrashed()
19
+ * @method static \Illuminate\Database\Eloquent \Builder|Simple withTrashed()
20
+ * @method static \Illuminate\Database\Eloquent \Builder|Simple withoutTrashed()
21
21
* @mixin \Eloquent
22
22
*/
23
23
class Simple extends Model
You can’t perform that action at this time.
0 commit comments