1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-05 16:27:38 +02:00

[ticket/17414] Move more functionality to base and fix turnstile language

PHPBB-17414
This commit is contained in:
Marc Alexander
2024-10-13 21:41:11 +02:00
parent 48454308ae
commit cf16a76f0c
5 changed files with 103 additions and 39 deletions

View File

@@ -19,7 +19,12 @@ class legacy_wrapper implements plugin_interface
private string $last_error;
public function __construct($legacy_captcha)
/**
* Constructor for legacy CAPTCHA wrapper
*
* @param object $legacy_captcha
*/
public function __construct(object $legacy_captcha)
{
$this->legacy_captcha = $legacy_captcha;
}
@@ -77,7 +82,7 @@ class legacy_wrapper implements plugin_interface
/**
* {@inheritDoc}
*/
public function init(int $type): void
public function init(confirm_type $type): void
{
if (method_exists($this->legacy_captcha, 'init'))
{