Skip to content

Conversation

@ilkermutlu
Copy link
Collaborator

I came across this plugin today while doing some massive refactoring and found it extremely useful.

I use fluent setters quite often. This PR adds another prompt to provide the user with the option to have a return $this; statement in the setter method.

@adoy
Copy link
Owner

adoy commented Nov 2, 2016

Hi, thanks for the contribution. Before merging this I would love to have some kind of configuration where I can change the behaviour of this with something like

0 = disabled
1 = enabled
2 = prompt

So that people don't always have to answer this question. Thanks

This commit adds g:php_refactoring_make_setter_fluent which is by default 0.

Possible values are:
0 - Disabled
1 - Enabled
2 - Prompt
Other - Error
@ilkermutlu
Copy link
Collaborator Author

Hi, added that configuration option in f91c424.

Hope it works.

@adoy adoy merged commit b133d81 into adoy:master Nov 3, 2016
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