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

Deprecate bool and null for 2nd argument of Index::create() #1828

Merged
merged 2 commits into from
Oct 26, 2020

Conversation

deguif
Copy link
Collaborator

@deguif deguif commented Oct 23, 2020

A code sample result better resumes the changes

  • create()

  • create([])

  • create([], [])

  • create([], null)
    Deprecated: Passing null as 2nd argument to "Elastica\Index::create()" is deprecated since Elastica 7.0.1, avoid passing this argument or pass an array instead.

  • create([], false)
    Deprecated: Passing a bool as 2nd argument to "Elastica\Index::create()" is deprecated since Elastica 7.0.1, pass an array with the key "recreate" instead.

See https://3v4l.org/CHRCv for real execution result

@deguif deguif changed the title Index::create() deprecations for options type-hints Deprecate bool and null for 2nd argument of Index::create() Oct 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants