Skip to content

Commit 593ef96

Browse files
committed
not support array value
1 parent 81d5f54 commit 593ef96

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Validation/Validator.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@ public function getMessage($validationName, $args)
121121
}
122122
$args[0] = __d($this->_i18nDomain, $args[0]);
123123

124+
// not support array values
125+
foreach ($args as $no => $arg) {
126+
if (is_array($arg)) {
127+
$args[$no] = null;
128+
}
129+
}
130+
124131
return __d($this->_i18nDomain, $message, ...$args);
125132
}
126133
}

0 commit comments

Comments
 (0)