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

Explicitly mark nullable params (thanks to @dg)

This commit is contained in:
Jakub Vrana
2025-04-01 19:14:44 +02:00
parent 01ea001f22
commit 04ed73be26
3 changed files with 7 additions and 7 deletions

View File

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