From 120e9f98375d5d79fed9fa62e97cd3455eed5e5c Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Fri, 1 Nov 2024 12:35:24 +1300 Subject: [PATCH] ENH Use updated FormField::validate() signature --- src/AddToCampaignValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AddToCampaignValidator.php b/src/AddToCampaignValidator.php index d75b04d0..9cfd6f63 100644 --- a/src/AddToCampaignValidator.php +++ b/src/AddToCampaignValidator.php @@ -21,7 +21,7 @@ public function php($data) // Check field validation foreach ($fields as $field) { - $valid = ($field->validate($this) && $valid); + $valid = $field->validate()->isValid() && $valid; } if (!$valid) { return $valid;