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

PHPStan: Fix level 1 errors

This commit is contained in:
Jakub Vrana
2025-03-26 13:49:11 +01:00
parent 3de9b23156
commit d39cc24c61
15 changed files with 28 additions and 27 deletions

View File

@@ -207,9 +207,7 @@ if (isset($_GET["elastic"])) {
if (empty($search)) {
return false;
}
if ($select == array("*")) {
$tableFields = array_keys(fields($table));
}
$tableFields = ($select == array("*") ? array_keys(fields($table)) : array());
$return = array();
foreach ($search["hits"]["hits"] as $hit) {
@@ -332,7 +330,7 @@ if (isset($_GET["elastic"])) {
return $credentials[1];
}
function get_databases() {
function get_databases($flush) {
return array("elastic");
}
@@ -445,7 +443,7 @@ if (isset($_GET["elastic"])) {
return h(connection()->error);
}
function information_schema() {
function information_schema($db) {
//
}

View File

@@ -478,7 +478,7 @@ if (isset($_GET["mongo"])) {
function db_collation($db, $collations) {
}
function information_schema() {
function information_schema($db) {
}
function is_view($table_status) {

View File

@@ -274,7 +274,7 @@ if (isset($_GET["simpledb"])) {
return $credentials[1];
}
function get_databases() {
function get_databases($flush) {
return array("domain");
}
@@ -329,7 +329,7 @@ if (isset($_GET["simpledb"])) {
return h($connection->error);
}
function information_schema() {
function information_schema($db) {
}
function indexes($table, $connection2 = null) {