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

[5.6] Relocate the existence check for factory definitions #22936

Merged
merged 1 commit into from
Jan 29, 2018

Conversation

mtvs
Copy link
Contributor

@mtvs mtvs commented Jan 26, 2018

When a factory is not defined the FactoryBuilder::raw() should throw InvalidArgumentException too.

@mtvs mtvs changed the title Relocate the existence check for factory definitions [5.6] Relocate the existence check for factory definitions Jan 26, 2018
@browner12
Copy link
Contributor

we're moving the check 1 step down the execution, so this is thrown by both raw() and make() now instead of just make.

i think it makes sense to move it closer to where we're actually calling the closure.

LGTM.

@taylorotwell taylorotwell merged commit eea3862 into laravel:5.6 Jan 29, 2018
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