Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauricio@fauth.dev>2022-09-22 04:02:03 +0300
committerMaurício Meneghini Fauth <mauricio@fauth.dev>2022-09-26 22:27:00 +0300
commit9d7582a2c0c41473c19f6e312bb53f0d3d510921 (patch)
tree4aabe28613c5e9933113143b551aa9e9c3c50979 /libraries
parent4f95a862116bbe51154c9f1e66b9f845688c3c3e (diff)
Hide deprecation notices
Do not show deprecation notices when not in a development environment. Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/classes/ErrorHandler.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/libraries/classes/ErrorHandler.php b/libraries/classes/ErrorHandler.php
index ed9ea46aca..1e114ccc2f 100644
--- a/libraries/classes/ErrorHandler.php
+++ b/libraries/classes/ErrorHandler.php
@@ -275,8 +275,11 @@ class ErrorHandler
$error = new Error($errno, $errstr, $errfile, $errline);
$error->setHideLocation($this->hideLocation);
- // do not repeat errors
- $this->errors[$error->getHash()] = $error;
+ // Deprecation errors will be shown in development environment, as they will have a different number.
+ if ($error->getNumber() !== E_DEPRECATED) {
+ // do not repeat errors
+ $this->errors[$error->getHash()] = $error;
+ }
switch ($error->getNumber()) {
case E_STRICT: