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

Implement callable validators #85

Merged
merged 2 commits into from
Feb 20, 2020
Merged

Implement callable validators #85

merged 2 commits into from
Feb 20, 2020

Conversation

Kubo2
Copy link
Contributor

@Kubo2 Kubo2 commented Feb 19, 2020

Callable types may now be used to implement custom validators. Supersedes #61, resolves feature request #60. Code example (borrowed from the testcase):

$defBuilder->setOptionValidator(new JBBCode\validators\FnValidator('is_numeric'));

/cc @jbowens @DaSourcerer

@Kubo2 Kubo2 changed the title Implemente callable validators Implement callable validators Feb 19, 2020
Copy link
Owner

@jbowens jbowens left a comment

Choose a reason for hiding this comment

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

lgtm

@jbowens jbowens merged commit 295fcd3 into jbowens:master Feb 20, 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