mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-31 07:01:54 +00:00
Change scope of checkAndSetLabel for easier extension
This commit is contained in:
parent
4112b40452
commit
39eaf820c1
@ -1006,7 +1006,7 @@ class Validator
|
||||
* @param array $params
|
||||
* @return array
|
||||
*/
|
||||
private function checkAndSetLabel($field, $msg, $params)
|
||||
protected function checkAndSetLabel($field, $msg, $params)
|
||||
{
|
||||
if (isset($this->_labels[$field])) {
|
||||
$msg = str_replace('{field}', $this->_labels[$field], $msg);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user