diff --git a/lib/yform/value/spam_protection.php b/lib/yform/value/spam_protection.php index 940bb68..f90ce79 100644 --- a/lib/yform/value/spam_protection.php +++ b/lib/yform/value/spam_protection.php @@ -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(); @@ -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)'; } diff --git a/package.yml b/package.yml index 1793276..282f4f3 100644 --- a/package.yml +++ b/package.yml @@ -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 diff --git a/plugins/recaptcha/lib/yform/value/recaptcha.php b/plugins/recaptcha/lib/yform/value/recaptcha.php index b7846bd..59c6422 100644 --- a/plugins/recaptcha/lib/yform/value/recaptcha.php +++ b/plugins/recaptcha/lib/yform/value/recaptcha.php @@ -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]|'; } diff --git a/plugins/recaptcha/lib/yform/value/recaptcha_v3.php b/plugins/recaptcha/lib/yform/value/recaptcha_v3.php index 39aca65..5d78cfc 100644 --- a/plugins/recaptcha/lib/yform/value/recaptcha_v3.php +++ b/plugins/recaptcha/lib/yform/value/recaptcha_v3.php @@ -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]|'; }