diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
index 02ec99d757..ebcd9e49e0 100644
--- a/phpstan-baseline.neon
+++ b/phpstan-baseline.neon
@@ -2689,7 +2689,7 @@ parameters:
path: src/Controllers/Export/ExportController.php
-
- message: '#^Only booleans are allowed in an if condition, mixed given\.$#'
+ message: '#^Only booleans are allowed in an if condition, string given\.$#'
identifier: if.condNotBoolean
count: 1
path: src/Controllers/Export/ExportController.php
@@ -2712,24 +2712,6 @@ parameters:
count: 1
path: src/Controllers/Export/ExportController.php
- -
- message: '#^Parameter \#2 \$compression of method PhpMyAdmin\\Export\\Export\:\:compress\(\) expects string, mixed given\.$#'
- identifier: argument.type
- count: 2
- path: src/Controllers/Export/ExportController.php
-
- -
- message: '#^Parameter \#2 \$compression of method PhpMyAdmin\\Export\\Export\:\:getFinalFilename\(\) expects string, mixed given\.$#'
- identifier: argument.type
- count: 2
- path: src/Controllers/Export/ExportController.php
-
- -
- message: '#^Parameter \#2 \$compression of method PhpMyAdmin\\Export\\Export\:\:getMimeType\(\) expects string, mixed given\.$#'
- identifier: argument.type
- count: 1
- path: src/Controllers/Export/ExportController.php
-
-
message: '#^Parameter \#3 \$saveFilename of method PhpMyAdmin\\Export\\Export\:\:closeFile\(\) expects string, mixed given\.$#'
identifier: argument.type
@@ -2754,6 +2736,12 @@ parameters:
count: 2
path: src/Controllers/Export/ExportController.php
+ -
+ message: '#^Static property PhpMyAdmin\\Export\\Export\:\:\$compression \(''''\|''gzip''\|''none''\|''zip''\) does not accept string\.$#'
+ identifier: assign.propertyType
+ count: 1
+ path: src/Controllers/Export/ExportController.php
+
-
message: '''
#^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\:
diff --git a/psalm-baseline.xml b/psalm-baseline.xml
index 34efc7295e..f8df632996 100644
--- a/psalm-baseline.xml
+++ b/psalm-baseline.xml
@@ -1403,7 +1403,6 @@
-
@@ -1429,15 +1428,18 @@
export->compress(
$this->export->dumpBuffer,
- $GLOBALS['compression'],
+ Export::$compression,
$filename,
)]]>
export->compress(
$this->export->dumpBufferObjects,
- $GLOBALS['compression'],
+ Export::$compression,
$filename,
)]]>
+
+ getParsedBodyParamAsString('compression')]]>
+
diff --git a/psalm.xml b/psalm.xml
index ed13eb758f..ee8694eea6 100644
--- a/psalm.xml
+++ b/psalm.xml
@@ -39,7 +39,6 @@