Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[9.x] Improve factory stub type annotation #41132

Merged
merged 1 commit into from
Feb 21, 2022
Merged

[9.x] Improve factory stub type annotation #41132

merged 1 commit into from
Feb 21, 2022

Conversation

rodrigopedra
Copy link
Contributor

https://github.com/laravel/laravel Ships with a UserFactory with an improved type annotation

https://github.com/laravel/laravel/blob/871ff9e65fea5588b1018d8770db6fc6ad37069d/database/factories/UserFactory.php#L13-L27

But when creating new factories with the make:factory or with make:model and the -f option, the factory definition does not include this improved type annotation.

This PR:

  • Improves the type annotation on the factory.stub file

@nunomaduro nunomaduro merged commit 8346d07 into laravel:9.x Feb 21, 2022
@rodrigopedra rodrigopedra deleted the factory-stub-type branch February 21, 2022 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants