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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user