1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-05 14:17:26 +02:00

Plugins: PHP 5 compatibility (fix #1125)

This commit is contained in:
Jakub Vrana
2025-07-28 22:46:31 +02:00
parent 6f766f8c52
commit cc110c448c
3 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ class AdminerLoginOtp extends Adminer\Plugin {
/** /**
* @param string $secret decoded secret, e.g. base64_decode("SECRET") * @param string $secret decoded secret, e.g. base64_decode("SECRET")
*/ */
function __construct(string $secret) { function __construct($secret) {
$this->secret = $secret; $this->secret = $secret;
if ($_POST["auth"]) { if ($_POST["auth"]) {
$_SESSION["otp"] = (string) $_POST["auth"]["otp"]; $_SESSION["otp"] = (string) $_POST["auth"]["otp"];

View File

@@ -12,7 +12,7 @@ class AdminerLoginPasswordLess extends Adminer\Plugin {
/** Set allowed password /** Set allowed password
* @param string $password_hash result of password_hash() * @param string $password_hash result of password_hash()
*/ */
function __construct(string $password_hash) { function __construct($password_hash) {
$this->password_hash = $password_hash; $this->password_hash = $password_hash;
} }

View File

@@ -19,7 +19,7 @@ class AdminerLoginTable extends Adminer\Plugin {
protected $database; protected $database;
/** Set database of login table */ /** Set database of login table */
function __construct(string $database) { function __construct($database) {
$this->database = $database; $this->database = $database;
} }