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

Fix types of $connection2

This commit is contained in:
Jakub Vrana
2025-03-29 22:14:51 +01:00
parent 712d96b22c
commit 291ae7f1ac
3 changed files with 16 additions and 11 deletions

View File

@@ -538,9 +538,10 @@ if (!defined('Adminer\DRIVER')) {
}
/** Get table indexes
* @param Db|string $connection2
* @return Index[]
*/
function indexes(string $table, ?Db $connection2 = null): array {
function indexes(string $table, $connection2 = null): array {
$return = array();
foreach (get_rows("SHOW INDEX FROM " . table($table), $connection2) as $row) {
$name = $row["Key_name"];
@@ -1068,8 +1069,10 @@ if (!defined('Adminer\DRIVER')) {
return "";
}
/** Set current schema */
function set_schema(string $schema, Db $connection2 = null): bool {
/** Set current schema
* @param Db|string $connection2
*/
function set_schema(string $schema, $connection2 = null): bool {
return true;
}
}