From 14e8d6ec12cda5c27422f629886e20bda4086c21 Mon Sep 17 00:00:00 2001 From: George Steel Date: Mon, 25 Jul 2022 12:55:44 +0100 Subject: [PATCH] Reverts the `is_string` check introduced in 2.16.0 for validation groups as it breaks existing behaviour for form collections. Signed-off-by: George Steel --- src/BaseInputFilter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BaseInputFilter.php b/src/BaseInputFilter.php index 7a0edf0c..d6364623 100644 --- a/src/BaseInputFilter.php +++ b/src/BaseInputFilter.php @@ -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