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

Make sure $attributes is an array #32

Closed
wants to merge 1 commit into from
Closed

Conversation

barryvdh
Copy link
Contributor

Otherwise the count() in Document will fail. This will make sure that $attributes is an array as expected, before initialized.

if (count($this->attributes)) {
     $tag = new Group($this, $name);
}

@barryvdh barryvdh mentioned this pull request Apr 14, 2018
@barryvdh
Copy link
Contributor Author

Sorry, duplicate of #27

@barryvdh barryvdh closed this Apr 14, 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.

1 participant