Fixed mixed type hints

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
Kamil Tekiela 2025-02-04 20:52:46 +00:00
parent 065ee8524c
commit a39f05672f
3 changed files with 7 additions and 17 deletions

View File

@ -327,12 +327,6 @@ parameters:
count: 2
path: src/BrowseForeigners.php
-
message: '#^Parameter \#1 \$description of method PhpMyAdmin\\BrowseForeigners\:\:getDescriptionAndTitle\(\) expects string, mixed given\.$#'
identifier: argument.type
count: 2
path: src/BrowseForeigners.php
-
message: '#^Parameter \#1 \$state of static method PhpMyAdmin\\Charsets\\Charset\:\:fromServer\(\) expects array\{Charset\?\: string, Description\?\: string, Default collation\?\: string, Maxlen\?\: string\}, array\<string\|null\> given\.$#'
identifier: argument.type

View File

@ -71,10 +71,6 @@
</PossiblyNullArgument>
</file>
<file src="src/BrowseForeigners.php">
<MixedArgument>
<code><![CDATA[$descriptions[$indexByDescription]]]></code>
<code><![CDATA[$descriptions[$indexByKeyname]]]></code>
</MixedArgument>
<MixedArrayOffset>
<code><![CDATA[$relrow[$foreignData->foreignField]]]></code>
</MixedArrayOffset>

View File

@ -35,13 +35,13 @@ class BrowseForeigners
/**
* Function to get html for one relational key
*
* @param int $horizontalCount the current horizontal count
* @param string $header table header
* @param mixed[] $keys all the keys
* @param int $indexByKeyname index by keyname
* @param mixed[] $descriptions descriptions
* @param int $indexByDescription index by description
* @param string $currentValue current value on the edit form
* @param int $horizontalCount the current horizontal count
* @param string $header table header
* @param mixed[] $keys all the keys
* @param int $indexByKeyname index by keyname
* @param string[] $descriptions descriptions
* @param int $indexByDescription index by description
* @param string $currentValue current value on the edit form
*
* @return array{string, int, int} the generated html
*/