Skip to content

Commit

Permalink
Fix type resulting in multipleOptions param being ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
Cory Thompson committed Jan 22, 2017
1 parent a7645d6 commit 68a90fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Validation/Validator.php
Expand Up @@ -1558,7 +1558,7 @@ public function isArray($field, $message = null, $when = null)
public function multipleOptions($field, array $options = [], $message = null, $when = null)
{
$extra = array_filter(['on' => $when, 'message' => $message]);
$caseInsensitive = isset($options['caseInsenstive']) ? $options['caseInsensitive'] : false;
$caseInsensitive = isset($options['caseInsensitive']) ? $options['caseInsensitive'] : false;
unset($options['caseInsensitive']);

return $this->add($field, 'multipleOptions', $extra + [
Expand Down

0 comments on commit 68a90fd

Please sign in to comment.