Fix type hint

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
Kamil Tekiela 2024-12-30 17:22:30 +00:00
parent 371eb78ce1
commit 20e34e83c0
3 changed files with 17 additions and 25 deletions

View File

@ -9252,12 +9252,6 @@ parameters:
count: 6
path: src/InsertEdit.php
-
message: '#^Parameter \#1 \$params of static method PhpMyAdmin\\Url\:\:getCommon\(\) expects array\<string, bool\|int\|string\>, array\<mixed\> given\.$#'
identifier: argument.type
count: 2
path: src/InsertEdit.php
-
message: '#^Parameter \#1 \$params of static method PhpMyAdmin\\Url\:\:getCommon\(\) expects array\<string, bool\|int\|string\>, array\<string, mixed\> given\.$#'
identifier: argument.type

View File

@ -5522,8 +5522,6 @@
</MixedArgument>
<MixedArgumentTypeCoercion>
<code><![CDATA[$currentRow]]></code>
<code><![CDATA[$thisUrlParams]]></code>
<code><![CDATA[$thisUrlParams]]></code>
<code><![CDATA[$whereClauseArray]]></code>
</MixedArgumentTypeCoercion>
<MixedArrayAccess>

View File

@ -238,9 +238,9 @@ class InsertEdit
/**
* Show type information or function selectors in Insert/Edit
*
* @param string $which function|type
* @param mixed[] $urlParams containing url parameters
* @param bool $isShow whether to show the element in $which
* @param string $which function|type
* @param array<string, bool|int|string> $urlParams containing url parameters
* @param bool $isShow whether to show the element in $which
*
* @return string an HTML snippet
*/
@ -685,7 +685,7 @@ class InsertEdit
/**
* Get table head and table foot for insert row table
*
* @param mixed[] $urlParams url parameters
* @param array<string, bool|int|string> $urlParams url parameters
*
* @return string an html snippet
*/
@ -1840,19 +1840,19 @@ class InsertEdit
/**
* Function to get html for each insert/edit row
*
* @param mixed[] $urlParams url parameters
* @param list<ColumnFull> $tableColumns table columns
* @param string[] $commentsMap comments map
* @param ResultInterface $currentResult current result
* @param bool $insertMode whether insert mode
* @param array<string|null> $currentRow current row
* @param bool $isUpload whether upload
* @param mixed[] $foreigners foreigners
* @param string $table table
* @param string $db database
* @param int $rowId row id
* @param mixed[] $repopulate the data to be repopulated
* @param string[] $whereClauseArray the array of where clauses
* @param array<string, bool|int|string> $urlParams url parameters
* @param list<ColumnFull> $tableColumns table columns
* @param string[] $commentsMap comments map
* @param ResultInterface $currentResult current result
* @param bool $insertMode whether insert mode
* @param array<string|null> $currentRow current row
* @param bool $isUpload whether upload
* @param mixed[] $foreigners foreigners
* @param string $table table
* @param string $db database
* @param int $rowId row id
* @param mixed[] $repopulate the data to be repopulated
* @param string[] $whereClauseArray the array of where clauses
*/
public function getHtmlForInsertEditRow(
array $urlParams,