diff --git a/libraries/classes/InsertEdit.php b/libraries/classes/InsertEdit.php
index 726619582f..c45e536f4b 100644
--- a/libraries/classes/InsertEdit.php
+++ b/libraries/classes/InsertEdit.php
@@ -2312,7 +2312,10 @@ class InsertEdit
}
if ($isUpload && $column['is_blob']) {
- [$maxUploadSize] = $this->getMaxUploadSize($column['pma_type'], $biggestMaxFileSize);
+ [$maxUploadSize] = $this->getMaxUploadSize(
+ Util::extractColumnSpec($column['pma_type'])['type'],
+ $biggestMaxFileSize
+ );
}
if (! empty($GLOBALS['cfg']['UploadDir'])) {
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
index b1fb9df463..359dccd9c9 100644
--- a/phpstan-baseline.neon
+++ b/phpstan-baseline.neon
@@ -21812,7 +21812,7 @@ parameters:
-
message: "#^Parameter \\#1 \\$columnSpecification of static method PhpMyAdmin\\\\Util\\:\\:extractColumnSpec\\(\\) expects string, mixed given\\.$#"
- count: 3
+ count: 4
path: libraries/classes/InsertEdit.php
-
diff --git a/psalm-baseline.xml b/psalm-baseline.xml
index 9335badc11..9f43c77eb3 100644
--- a/psalm-baseline.xml
+++ b/psalm-baseline.xml
@@ -8011,7 +8011,7 @@
string
-
+
$_POST['fields']['multi_edit']
$_POST['fields']['multi_edit'][$rownumber][$key]
$backupField
@@ -8095,6 +8095,7 @@
$whereClause
$whereClause
$whereClause
+ Util::extractColumnSpec($column['pma_type'])['type']
min(max($column['len'] * 2, 4), $GLOBALS['cfg']['LimitChars'])