You've already forked phpmyadmin
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:
@@ -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\:
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user