Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add callable support to
Validator::requirePresence()
.
While `Validator::add()`, `Validator::allowEmpty()` and `Validator::notEmpty()` do accept callables, `Validator::requirePresence()` does not, making it unnecessarily "complicated" to handle data, where, depending on conditions, some fields may be absent.
- Loading branch information
ndm2
committed
Sep 25, 2015
1 parent
9c3f728
commit 3c9abb5
Showing
2 changed files
with
43 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters