Fix some type errors

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2023-03-19 19:08:02 -03:00
parent 29ca13e6d8
commit e66aaf482a
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8
2 changed files with 6 additions and 6 deletions

View File

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

View File

@ -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);
}