Skip to content

Commit c50fff2

Browse files
committed
Bypass pre filtering for parameters with multiple types. Closes Luracast#673
1 parent 8f038ef commit c50fff2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Data/Validator.php

+1
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ public static function validate($input, ValidationInfo $info, $full = null)
424424
$input = $func($input);
425425
}
426426
if (
427+
!is_array($info->type) &&
427428
isset(static::$preFilters[$info->type]) &&
428429
(is_scalar($input) || !empty($info->children)) &&
429430
is_callable($func = static::$preFilters[$info->type])

0 commit comments

Comments
 (0)