diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
index 905e5962c3..fab0f60e8a 100644
--- a/phpstan-baseline.neon
+++ b/phpstan-baseline.neon
@@ -18981,12 +18981,6 @@ parameters:
count: 4
path: tests/unit/Error/ErrorHandlerTest.php
- -
- message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\.$#'
- identifier: assign.propertyType
- count: 1
- path: tests/unit/Error/ErrorHandlerTest.php
-
-
message: '''
#^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\:
diff --git a/psalm-baseline.xml b/psalm-baseline.xml
index 5c1bc41821..d7442bef46 100644
--- a/psalm-baseline.xml
+++ b/psalm-baseline.xml
@@ -11412,9 +11412,6 @@
-
- settings]]>
-
diff --git a/src/Controllers/ErrorReportController.php b/src/Controllers/ErrorReportController.php
index c8ed9892eb..2951f89ec8 100644
--- a/src/Controllers/ErrorReportController.php
+++ b/src/Controllers/ErrorReportController.php
@@ -87,7 +87,7 @@ final class ErrorReportController implements InvocableController
/* Message to show to the user */
if ($success) {
- if ($automatic === 'true' || $config->settings['SendErrorReports'] === 'always') {
+ if ($automatic === 'true' || $config->config->SendErrorReports === 'always') {
$msg = __(
'An error has been detected and an error report has been '
. 'automatically submitted based on your settings.',
@@ -134,7 +134,7 @@ final class ErrorReportController implements InvocableController
}
}
} elseif ($request->hasBodyParam('get_settings')) {
- $this->response->addJSON('report_setting', $config->settings['SendErrorReports']);
+ $this->response->addJSON('report_setting', $config->config->SendErrorReports);
} elseif ($exceptionType === 'js') {
$this->response->addJSON('report_modal', $this->errorReport->getEmptyModal());
$this->response->addHTML($this->errorReport->getForm());
diff --git a/src/Error/ErrorHandler.php b/src/Error/ErrorHandler.php
index d4a90369d3..82bcb31329 100644
--- a/src/Error/ErrorHandler.php
+++ b/src/Error/ErrorHandler.php
@@ -370,7 +370,7 @@ class ErrorHandler
$retval = '';
// display errors if SendErrorReports is set to 'ask'.
$config = Config::getInstance();
- if ($config->settings['SendErrorReports'] !== 'never') {
+ if ($config->config->SendErrorReports !== 'never') {
foreach ($this->getErrors() as $error) {
if ($error->isDisplayed()) {
continue;
@@ -382,11 +382,11 @@ class ErrorHandler
$retval .= $this->getDispUserErrors();
}
- if ($config->settings['SendErrorReports'] !== 'never' && $this->countActualErrors() !== 0) {
+ if ($config->config->SendErrorReports !== 'never' && $this->countActualErrors() !== 0) {
// add report button.
$retval .= '