Skip to content

Commit

Permalink
API Use updated FormField::validate() signature
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Nov 21, 2024
1 parent 48ba0d5 commit ffb7698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AddToCampaignValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ffb7698

Please sign in to comment.