diff --git a/libraries/classes/Table.php b/libraries/classes/Table.php
index 3551b65365..9068907d5d 100644
--- a/libraries/classes/Table.php
+++ b/libraries/classes/Table.php
@@ -399,11 +399,8 @@ class Table implements Stringable
public function getRowFormat(): string
{
$tableRowFormat = $this->getStatusInfo('ROW_FORMAT', false, true);
- if ($tableRowFormat === false) {
- return '';
- }
- return $tableRowFormat ?? '';
+ return is_string($tableRowFormat) ? $tableRowFormat : '';
}
/**
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
index 9b1ea53ce9..0308de8ea9 100644
--- a/phpstan-baseline.neon
+++ b/phpstan-baseline.neon
@@ -8500,11 +8500,6 @@ parameters:
count: 1
path: libraries/classes/Table.php
- -
- message: "#^Method PhpMyAdmin\\\\Table\\:\\:getRowFormat\\(\\) should return string but returns mixed\\.$#"
- count: 1
- path: libraries/classes/Table.php
-
-
message: "#^Method PhpMyAdmin\\\\Table\\:\\:getSQLToCreateForeignKey\\(\\) has parameter \\$field with no value type specified in iterable type array\\.$#"
count: 1
diff --git a/psalm-baseline.xml b/psalm-baseline.xml
index fbb76f80a9..99017035a6 100644
--- a/psalm-baseline.xml
+++ b/psalm-baseline.xml
@@ -13658,7 +13658,6 @@
string
string
string
- string
has
@@ -13682,7 +13681,6 @@
$tableComment
- $tableRowFormat
errors)]]>
messages)]]>
json_decode($value, true)