1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

PHPStan: Fix level 0 errors

This commit is contained in:
Jakub Vrana
2025-03-26 12:41:52 +01:00
parent f75f0aacfe
commit 63c258a7f9
10 changed files with 36 additions and 26 deletions

View File

@@ -27,8 +27,8 @@ if (isset($_GET["firebird"])) {
$this->_link = ibase_connect($server, $username, $password);
if ($this->_link) {
$url_parts = explode(':', $server);
$this->service_link = ibase_service_attach($url_parts[0], $username, $password);
$this->server_info = ibase_server_info($this->service_link, IBASE_SVC_SERVER_VERSION);
$service_link = ibase_service_attach($url_parts[0], $username, $password);
$this->server_info = ibase_server_info($service_link, IBASE_SVC_SERVER_VERSION);
} else {
$this->errno = ibase_errcode();
$this->error = ibase_errmsg();

View File

@@ -110,7 +110,7 @@ if (isset($_GET["imap"])) {
}
function expunge() {
return imap_expunge();
return imap_expunge($this->imap);
}
}
@@ -272,7 +272,7 @@ if (isset($_GET["imap"])) {
}
function truncate_tables($tables) {
return connection()->expunge($name);
return connection()->expunge();
}
function connect($credentials) {

View File

@@ -19,7 +19,7 @@ if (isset($_GET["mongo"])) {
}
function executeCommand($command) {
return $this->executeDbCommand($this->_db_name);
return $this->executeDbCommand($this->_db_name, $command);
}
function executeDbCommand($db, $command) {