Skip to content

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

Merged
taylorotwell merged 1 commit into
laravel:5.6from
mtvs:5.6
Jan 29, 2018
Merged

taylorotwell merged 1 commit into
laravel:5.6from
mtvs:5.6

Conversation

@mtvs

@mtvs mtvs commented Jan 26, 2018

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
salmanarshad321 pushed a commit to salmanarshad321/framework that referenced this pull request Sep 23, 2026
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