1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-23 18:29:15 +03:00

Fix return type of ListDatabase::retrieve()

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
Kamil Tekiela
2026-09-01 01:11:01 +01:00
parent fed9933d60
commit 1091f8a0d5
3 changed files with 1 additions and 10 deletions

View File

@@ -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\:

View File

@@ -4857,9 +4857,6 @@
</PossiblyNullOperand>
</file>
<file src="src/ListDatabase.php">
<MixedArgumentTypeCoercion>
<code><![CDATA[usort($databaseList, strnatcasecmp(...))]]></code>
</MixedArgumentTypeCoercion>
<RiskyTruthyFalsyComparison>
<code><![CDATA[empty($this->config->selectedServer['hide_db'])]]></code>
</RiskyTruthyFalsyComparison>

View File

@@ -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
{