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

[WIP] Allow to pass callable as argument of CodeDefinitionBuilder::setOptionValidator/setBodyValidator() #61

Closed
wants to merge 2 commits into from

Conversation

Kubo2
Copy link
Contributor

@Kubo2 Kubo2 commented Jul 28, 2015

This is an implementation of the proposal #60.

  • implement ability to pass callables to setOptionValidator()/setBodyValidator()
  • refactor the code to match coding style
  • add tests

This change is Reviewable

@Kubo2 Kubo2 changed the title Ability to pass a callable to CodeDefinitionBuilder::set*Validator() Allow to pass callable as argument of CodeDefinitionBuilder::setOptionValidator/setBodyValidator() Jul 29, 2015
@Kubo2
Copy link
Contributor Author

Kubo2 commented Jul 29, 2015

@jbowens Should I also fix the coding style for CallableValidatorAdapter.php or is it all well? Please could you review this?

@Kubo2 Kubo2 changed the title Allow to pass callable as argument of CodeDefinitionBuilder::setOptionValidator/setBodyValidator() [WIP] Allow to pass callable as argument of CodeDefinitionBuilder::setOptionValidator/setBodyValidator() Aug 14, 2015
@DaSourcerer
Copy link
Contributor

Shouldn't I split this into two separate commits, one with implementation, and one containing test case?

A bit late perhaps, but: PRs are ideally atomic. That is they contain the desired changes as well as additional tests to demonstrate the intended behaviour. Splitting code changes and tests into two PRs will also defeat the purpose of the CI.

@Kubo2 Kubo2 closed this Feb 19, 2020
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