1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/17414] Extend unit test coverage for base class

PHPBB-17414
This commit is contained in:
Marc Alexander
2024-10-17 18:40:53 +02:00
parent 38ce4985f4
commit 1e80400d09
6 changed files with 130 additions and 14 deletions

View File

@@ -198,11 +198,11 @@ class legacy_wrapper implements plugin_interface
/**
* {@inheritDoc}
*/
public function garbage_collect(int $confirm_type = 0): void
public function garbage_collect(confirm_type $confirm_type = confirm_type::UNDEFINED): void
{
if (method_exists($this->legacy_captcha, 'garbage_collect'))
{
$this->legacy_captcha->garbage_collect($confirm_type);
$this->legacy_captcha->garbage_collect($confirm_type->value);
}
}