From cc110c448c9fbe41cc2e72ffe341860df3ba4c7d Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 28 Jul 2025 22:46:31 +0200 Subject: [PATCH] Plugins: PHP 5 compatibility (fix #1125) --- plugins/login-otp.php | 2 +- plugins/login-password-less.php | 2 +- plugins/login-table.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/login-otp.php b/plugins/login-otp.php index b2b705cd..0a34cfcd 100644 --- a/plugins/login-otp.php +++ b/plugins/login-otp.php @@ -12,7 +12,7 @@ class AdminerLoginOtp extends Adminer\Plugin { /** * @param string $secret decoded secret, e.g. base64_decode("SECRET") */ - function __construct(string $secret) { + function __construct($secret) { $this->secret = $secret; if ($_POST["auth"]) { $_SESSION["otp"] = (string) $_POST["auth"]["otp"]; diff --git a/plugins/login-password-less.php b/plugins/login-password-less.php index f6d24ab3..f89eab70 100644 --- a/plugins/login-password-less.php +++ b/plugins/login-password-less.php @@ -12,7 +12,7 @@ class AdminerLoginPasswordLess extends Adminer\Plugin { /** Set allowed password * @param string $password_hash result of password_hash() */ - function __construct(string $password_hash) { + function __construct($password_hash) { $this->password_hash = $password_hash; } diff --git a/plugins/login-table.php b/plugins/login-table.php index a081f82f..3fa4a979 100644 --- a/plugins/login-table.php +++ b/plugins/login-table.php @@ -19,7 +19,7 @@ class AdminerLoginTable extends Adminer\Plugin { protected $database; /** Set database of login table */ - function __construct(string $database) { + function __construct($database) { $this->database = $database; }