diff --git a/libraries/classes/Plugins/Auth/AuthenticationConfig.php b/libraries/classes/Plugins/Auth/AuthenticationConfig.php index 6f814a7d70..443c6cf4f3 100644 --- a/libraries/classes/Plugins/Auth/AuthenticationConfig.php +++ b/libraries/classes/Plugins/Auth/AuthenticationConfig.php @@ -99,7 +99,7 @@ class AuthenticationConfig extends AuthenticationPlugin
| ';
- if (isset($GLOBALS['allowDeny_forbidden']) && $GLOBALS['allowDeny_forbidden']) {
+ if ($failure === 'allow-denied') {
trigger_error(__('Access denied!'), E_USER_NOTICE);
} else {
// Check whether user has configured something
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
index b34d41b182..801f447ec2 100644
--- a/phpstan-baseline.neon
+++ b/phpstan-baseline.neon
@@ -465,11 +465,6 @@ parameters:
count: 1
path: libraries/classes/Config/FormDisplay.php
- -
- message: "#^Parameter \\#1 \\$path of method PhpMyAdmin\\\\Config\\\\ConfigFile\\:\\:set\\(\\) expects string, int\\|string given\\.$#"
- count: 1
- path: libraries/classes/Config/FormDisplay.php
-
-
message: "#^Parameter \\#1 \\$string of static method PhpMyAdmin\\\\Sanitize\\:\\:escapeJsString\\(\\) expects string, mixed given\\.$#"
count: 2
@@ -1316,7 +1311,7 @@ parameters:
path: libraries/classes/Controllers/Import/ImportController.php
-
- message: "#^Parameter \\#2 \\$replace of function preg_replace expects array\\|string, float\\|int\\|string\\|string given\\.$#"
+ message: "#^Parameter \\#2 \\$replace of function preg_replace expects array\\|string, float\\|int\\|string given\\.$#"
count: 1
path: libraries/classes/Controllers/Import/ImportController.php
@@ -1550,11 +1545,6 @@ parameters:
count: 1
path: libraries/classes/Controllers/Table/RelationController.php
- -
- message: "#^Parameter \\#2 \\$callback of function uksort expects callable\\(int\\|string, int\\|string\\)\\: int, 'strnatcasecmp' given\\.$#"
- count: 1
- path: libraries/classes/Controllers/Table/RelationController.php
-
-
message: "#^Parameter \\#2 \\$callback of function usort expects callable\\(string\\|null, string\\|null\\)\\: int, 'strnatcasecmp' given\\.$#"
count: 1
@@ -2937,7 +2927,7 @@ parameters:
-
message: "#^Method PhpMyAdmin\\\\Dbal\\\\MysqliResult\\:\\:fetchAllKeyPair\\(\\) should return array\\ |