- Made changes as per Marco's comments in #54
- Implemented database cleanup for tests. Closes #56
This commit is contained in:
@ -7,12 +7,9 @@ class CustomValidator {
|
||||
}
|
||||
|
||||
function init() {
|
||||
$this->validator->addValidator(
|
||||
'isString',
|
||||
function ($val) {
|
||||
return is_string($val);
|
||||
}
|
||||
);
|
||||
$this->validator->addValidator('isString', function ($val) {
|
||||
return is_string($val);
|
||||
});
|
||||
|
||||
return $this->validator;
|
||||
}
|
||||
|
Reference in New Issue
Block a user