Skip to content

Commit

Permalink
types
Browse files Browse the repository at this point in the history
  • Loading branch information
Barny-Thorpe committed Mar 21, 2024
1 parent e652b94 commit 44cf956
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GfGiftAidField.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public static function addSelectedPriceFieldSetting(int $position, int $form_id)
* Get all the fields in a gravity form in the format:
* ['field class' => 'field_label', ...]
*/
public static function getFormFields(mixed $form_id): array
public static function getFormFields(int $form_id): array
{
$exists = GFAPI::form_id_exists($form_id);
if (empty($exists)) {
Expand All @@ -79,7 +79,7 @@ public static function getFormFields(mixed $form_id): array
return [];
}

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

0 comments on commit 44cf956

Please sign in to comment.