mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-30 23:01:52 +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
|
* @param array $params
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
private function checkAndSetLabel($field, $msg, $params)
|
protected function checkAndSetLabel($field, $msg, $params)
|
||||||
{
|
{
|
||||||
if (isset($this->_labels[$field])) {
|
if (isset($this->_labels[$field])) {
|
||||||
$msg = str_replace('{field}', $this->_labels[$field], $msg);
|
$msg = str_replace('{field}', $this->_labels[$field], $msg);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user