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.4] fix breaking change #20727

Merged
merged 1 commit into from
Aug 24, 2017
Merged

[5.4] fix breaking change #20727

merged 1 commit into from
Aug 24, 2017

Conversation

@taylorotwell taylorotwell merged commit d55e8a2 into laravel:5.4 Aug 24, 2017
@@ -264,7 +264,7 @@ protected function applyStates(array $definition, array $attributes = [])
protected function expandAttributes(array $attributes)
{
foreach ($attributes as &$attribute) {
if (is_callable($attribute)) {
if (is_callable($attribute) && ! is_string($attribute)) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect! Just tripped on this with 'tan' when attempting upgrade to 5.4.34

@Jono20201
Copy link
Contributor

This was just tripping me out so much. Kept getting weird results when the factory used the dummy name 'Max'.

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.

4 participants