Skip to content

Commit

Permalink
Merge pull request #54 from FriendsOfREDAXO/skerbis-patch-yform4
Browse files Browse the repository at this point in the history
yForm 4 return types, @marcohanke ich konnte nicht mehr warten und habe es released
  • Loading branch information
skerbis authored Dec 28, 2021
2 parents a9760c8 + 85ac117 commit 87c27e6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/yform/value/spam_protection.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class rex_yform_value_spam_protection extends rex_yform_value_abstract
{
public function postValidateAction()
public function postValidateAction(): void
{
rex_login::startSession();

Expand Down Expand Up @@ -107,7 +107,7 @@ public function enterObject()
}
}

public function getDescription()
public function getDescription(): string
{
return 'spam_protection|honeypot|label(Bitte nicht ausfüllen)|Fehler(Ihre Anfrage wurde als Spam erkannt.)|Debugmodus(0/1)';
}
Expand Down
2 changes: 1 addition & 1 deletion package.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package: yform_spam_protection
version: '1.2.0-beta2'
version: '1.2.0'
author: 'Alexander Walther, FriendsOfREDAXO'
supportpage: https://github.com/friendsofredaxo/yform_spam_protection

Expand Down
2 changes: 1 addition & 1 deletion plugins/recaptcha/lib/yform/value/recaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function enterObject()
$this->params['form_output'][$this->getId()] = $this->parse('value.recaptcha.tpl.php', compact('publicKey', 'loadScript'));
}

public function getDescription()
public function getDescription(): string
{
return 'recaptcha|name|public_key|private_key|error_message|load_script[1,0]|';
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/recaptcha/lib/yform/value/recaptcha_v3.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function enterObject()
$this->params['form_output'][$this->getId()] = $this->parse('value.recaptcha_v3.tpl.php', compact('publicKey', 'loadScript'));
}

public function getDescription()
public function getDescription(): string
{
return 'recaptcha_v3|name|public_key|private_key|error_message|load_script[1,0]|';
}
Expand Down

1 comment on commit 87c27e6

@marcohanke
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Danke und Grüße aus dem Urlaub ;-)

Please sign in to comment.