Skip to content

Commit

Permalink
Fix return type on GF custom confirmation function
Browse files Browse the repository at this point in the history
Fix return type
  • Loading branch information
lithrel committed Feb 24, 2023
1 parent e261c45 commit da11b1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GravityFormsExtensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@ public function p4_gf_confirmation_settings(array $fields): array
* @param string|array $confirmation The default confirmation message.
* @param mixed $form The form properties.
*
* @return string The custom confirmation message.
* @return string|array The custom confirmation message.
*/
public function p4_gf_custom_confirmation($confirmation, $form): string
public function p4_gf_custom_confirmation($confirmation, $form)
{
// If the $confirmation object is an array, it means that it's a redirect page so we can directly use it.
if (is_array($confirmation)) {
Expand Down

0 comments on commit da11b1a

Please sign in to comment.