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) {
//
}