Skip to content

Commit

Permalink
Bypass pre filtering for parameters with multiple types. Closes Lurac…
Browse files Browse the repository at this point in the history
  • Loading branch information
Arul- committed Jul 19, 2021
1 parent 8f038ef commit c50fff2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Data/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ public static function validate($input, ValidationInfo $info, $full = null)
$input = $func($input);
}
if (
!is_array($info->type) &&
isset(static::$preFilters[$info->type]) &&
(is_scalar($input) || !empty($info->children)) &&
is_callable($func = static::$preFilters[$info->type])
Expand Down

0 comments on commit c50fff2

Please sign in to comment.