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

feat: method to set the search index #81

Merged
merged 2 commits into from
Jan 29, 2019
Merged

feat: method to set the search index #81

merged 2 commits into from
Jan 29, 2019

Conversation

willtj
Copy link
Contributor

@willtj willtj commented Jan 28, 2019

No description provided.

@ghost ghost assigned willtj Jan 28, 2019
@ghost ghost added the review label Jan 28, 2019
Copy link
Contributor

@JasparGupta JasparGupta left a comment

Choose a reason for hiding this comment

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

Forgot that return type! Tsk tsk

@willtj
Copy link
Contributor Author

willtj commented Jan 29, 2019

But none of the other methods in the class have return types! I don't mind adding it to just this one if you think that makes sense though - do you think it's better to return self?

@JasparGupta
Copy link
Contributor

Hmm yeah fair point, ok don't worry about the return type, I think I'd be worried that it might make the functions more difficult to override as well actually. In a setter yeah I'd return $this.

@willtj
Copy link
Contributor Author

willtj commented Jan 29, 2019

Cool, I've made it return $this instead.

@willtj willtj merged commit ae47f06 into master Jan 29, 2019
@willtj willtj deleted the set-search-index branch January 29, 2019 16:57
@ghost ghost removed the review label Jan 29, 2019
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.

2 participants