eee
This commit is contained in:
@@ -90,7 +90,7 @@ class Binding implements RequestFilterInterface
|
|||||||
protected function getValidator($key, $rule): array
|
protected function getValidator($key, $rule): array
|
||||||
{
|
{
|
||||||
if (is_numeric($key)) {
|
if (is_numeric($key)) {
|
||||||
$class = self::TYPES[$key];
|
$class = self::TYPES[$rule];
|
||||||
} else {
|
} else {
|
||||||
$class = array_merge(self::TYPES[$key], ['value' => $rule, 'field' => $key]);
|
$class = array_merge(self::TYPES[$key], ['value' => $rule, 'field' => $key]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user