Skip to content

Commit

Permalink
GF_Field
Browse files Browse the repository at this point in the history
  • Loading branch information
Barny-Thorpe committed Mar 26, 2024
1 parent 44cf956 commit e9ab3d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/GfGiftAidField.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use GFAddOn;
use GFAPI;
use GFForms;
use GF_Field;

class GfGiftAidField
{
Expand Down Expand Up @@ -79,7 +80,7 @@ public static function getFormFields(int $form_id): array
return [];
}

return array_reduce($fields, function (array $carry, mixed $field) use ($form_id): array {
return array_reduce($fields, function (array $carry, GF_Field $field) use ($form_id): array {
if (empty($field) || empty($field->id) || empty($field->label)) {
return $carry;
}
Expand Down

0 comments on commit e9ab3d5

Please sign in to comment.