Skip to content

Commit

Permalink
Reverts the is_string check introduced in 2.16.0 for validation gro…
Browse files Browse the repository at this point in the history
…ups as it breaks existing behaviour for form collections.

Signed-off-by: George Steel <[email protected]>
  • Loading branch information
gsteel committed Jul 25, 2022
1 parent c716cf8 commit 14e8d6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BaseInputFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ public function getMessages()
protected function validateValidationGroup(array $inputs)
{
foreach ($inputs as $name) {
if (! is_string($name) || ! array_key_exists($name, $this->inputs)) {
if (! array_key_exists($name, $this->inputs)) {
throw new Exception\InvalidArgumentException(sprintf(
'setValidationGroup() expects a list of valid input names; "%s" was not found',
(string) $name
Expand Down

0 comments on commit 14e8d6e

Please sign in to comment.