File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
tests/Console/ModelsCommand
GeneratePhpdocWithForcedFqn/__snapshots__
GeneratePhpdocWithFqn/__snapshots__
SoftDeletes/__snapshots__ Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1411,7 +1411,7 @@ protected function getSoftDeleteMethods($model)
1411
1411
if (in_array ('Illuminate \\Database \\Eloquent \\SoftDeletes ' , $ traits )) {
1412
1412
$ modelName = $ this ->getClassNameInDestinationFile ($ model , get_class ($ model ));
1413
1413
$ builder = $ this ->getClassNameInDestinationFile ($ model , \Illuminate \Database \Eloquent \Builder::class);
1414
- $ this ->setMethod ('withTrashed ' , $ builder . '<static>| ' . $ modelName , []);
1414
+ $ this ->setMethod ('withTrashed ' , $ builder . '<static>| ' . $ modelName , [' bool $withTrashed = true ' ]);
1415
1415
$ this ->setMethod ('withoutTrashed ' , $ builder . '<static>| ' . $ modelName , []);
1416
1416
$ this ->setMethod ('onlyTrashed ' , $ builder . '<static>| ' . $ modelName , []);
1417
1417
}
Original file line number Diff line number Diff line change 160
160
* @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereUuidNullable($value)
161
161
* @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereYearNotNullable($value)
162
162
* @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereYearNullable($value)
163
- * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post withTrashed()
163
+ * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post withTrashed(bool $withTrashed = true )
164
164
* @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post withoutTrashed()
165
165
* @mixin \Eloquent
166
166
*/
Original file line number Diff line number Diff line change 166
166
* @method static EloquentBuilder<static>|Post whereUuidNullable($value)
167
167
* @method static EloquentBuilder<static>|Post whereYearNotNullable($value)
168
168
* @method static EloquentBuilder<static>|Post whereYearNullable($value)
169
- * @method static EloquentBuilder<static>|Post withTrashed()
169
+ * @method static EloquentBuilder<static>|Post withTrashed(bool $withTrashed = true )
170
170
* @method static EloquentBuilder<static>|Post withoutTrashed()
171
171
* @mixin Eloquent
172
172
*/
Original file line number Diff line number Diff line change 16
16
* @method static \Illuminate\Database\Eloquent\Builder<static>|Simple onlyTrashed()
17
17
* @method static \Illuminate\Database\Eloquent\Builder<static>|Simple query()
18
18
* @method static \Illuminate\Database\Eloquent\Builder<static>|Simple whereId($value)
19
- * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple withTrashed()
19
+ * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple withTrashed(bool $withTrashed = true )
20
20
* @method static \Illuminate\Database\Eloquent\Builder<static>|Simple withoutTrashed()
21
21
* @mixin \Eloquent
22
22
*/
You can’t perform that action at this time.
0 commit comments