diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 7c355b299e..ccefd95bef 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -7512,12 +7512,6 @@ parameters: count: 1 path: src/ListDatabase.php - - - message: '#^Parameter \#2 \$callback of function usort expects callable\(mixed, mixed\)\: int, Closure\(string, string\)\: int\<\-1, 1\> given\.$#' - identifier: argument.type - count: 1 - path: src/ListDatabase.php - - message: ''' #^Access to deprecated static property \$route of class PhpMyAdmin\\Routing\\Routing\: diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 116dfd814a..23ce0d4b22 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -4857,9 +4857,6 @@ - - - config->selectedServer['hide_db'])]]> diff --git a/src/ListDatabase.php b/src/ListDatabase.php index 0cc225c226..48eccd65e6 100644 --- a/src/ListDatabase.php +++ b/src/ListDatabase.php @@ -75,7 +75,7 @@ class ListDatabase extends ArrayObject * * @param string|null $likeDbName usually a db_name containing wildcards * - * @return mixed[] + * @return string[] */ protected function retrieve(UserPrivileges $userPrivileges, string|null $likeDbName = null): array {