Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request #131 from marhub/patch-1
Browse files Browse the repository at this point in the history
Regression fix
  • Loading branch information
weierophinney committed Nov 7, 2017
2 parents bc9e49b + 094a037 commit b5ca516
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/BaseInputFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,17 +309,12 @@ public function setValidationGroup($name)

$inputs[] = $key;

if (! $this->inputs[$key] instanceof InputFilterInterface) {
throw new Exception\InvalidArgumentException(
sprintf(
'Input "%s" must implement InputFilterInterface',
$key
)
);
if ($this->inputs[$key] instanceof InputFilterInterface) {
// Recursively populate validation groups for sub input filters
$this->inputs[$key]->setValidationGroup($value);
}

// Recursively populate validation groups for sub input filters
$this->inputs[$key]->setValidationGroup($value);

}
} else {
$inputs = func_get_args();
Expand Down

0 comments on commit b5ca516

Please sign in to comment.