Fix some type errors
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
parent
29ca13e6d8
commit
e66aaf482a
@ -1308,9 +1308,9 @@ class Results
|
||||
* @param int $sessionMaxRows maximum rows resulted by sql
|
||||
* @param string $comments comment for row
|
||||
* @param array $sortDirection sort direction
|
||||
* @param bool $colVisib column is visible(false)
|
||||
* @param bool|array $colVisib column is visible(false)
|
||||
* or column isn't visible(string array)
|
||||
* @param string|null $colVisibElement element of $col_visib array
|
||||
* @param int|string|null $colVisibElement element of $col_visib array
|
||||
*
|
||||
* @return array 2 element array - $orderLink, $sortedHeaderHtml
|
||||
* @psalm-return array{
|
||||
@ -1331,8 +1331,8 @@ class Results
|
||||
int $sessionMaxRows,
|
||||
string $comments,
|
||||
array $sortDirection,
|
||||
bool $colVisib,
|
||||
string|null $colVisibElement,
|
||||
bool|array $colVisib,
|
||||
int|string|null $colVisibElement,
|
||||
): array {
|
||||
// Checks if the table name is required; it's the case
|
||||
// for a query with a "JOIN" statement and if the column
|
||||
|
||||
@ -336,11 +336,11 @@ class StorageEngine
|
||||
* DETAILS_TYPE_SIZE type needs to be
|
||||
* handled differently for a particular engine.
|
||||
*
|
||||
* @param int $value Value to format
|
||||
* @param int|string $value Value to format
|
||||
*
|
||||
* @return array|null the formatted value and its unit
|
||||
*/
|
||||
public function resolveTypeSize(int $value): array|null
|
||||
public function resolveTypeSize(int|string $value): array|null
|
||||
{
|
||||
return Util::formatByteDown($value);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user