Skip to content

Commit

Permalink
Fixing the generic for factories
Browse files Browse the repository at this point in the history
  • Loading branch information
srtfisher committed Nov 20, 2023
1 parent 3992067 commit cc5acbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ use App\Models\{{ class }};
/**
* {{ class }} Factory
*
* @extends \Mantle\Database\Factory\Post_Factory<\App\Models\{{ class }}>
* @extends \Mantle\Database\Factory\Post_Factory<\App\Models\{{ class }}, \WP_Post, {{ class }}>
*/
class {{ class }}_Factory extends \Mantle\Database\Factory\Post_Factory {
/**
* Model to use when creating objects.
*
* @var class-string<\Mantle\Database\Model\Model>
* @var class-string<{{ class }}>
*/
protected string $model = {{ class }}::class;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use App\Models\{{ class }};
/**
* {{ class }} Factory
*
* @extends \Mantle\Database\Factory\Term_Factory<\App\Models\{{ class }}>
* @extends \Mantle\Database\Factory\Term_Factory<\App\Models\{{ class }}, \WP_Term, {{ class }}>
*/
class {{ class }}_Factory extends \Mantle\Database\Factory\Term_Factory {
/**
Expand Down

0 comments on commit cc5acbe

Please sign in to comment.