diff options
author | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2022-09-26 23:30:39 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2022-09-26 23:30:39 +0300 |
commit | 6a5cb9f66efe7e406d2300a8ebcb989d485ee3be (patch) | |
tree | 079fcd3688b59b0c181fd036060dc15cf50fb8a9 /libraries | |
parent | 24d18b95dd7162e497ecff54ec891edc1bcf7e4b (diff) | |
parent | 893d4cddb67f671ec84a6b600a633974845877a1 (diff) |
Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/classes/ErrorHandler.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libraries/classes/ErrorHandler.php b/libraries/classes/ErrorHandler.php index 07b0eed485..8151281bc9 100644 --- a/libraries/classes/ErrorHandler.php +++ b/libraries/classes/ErrorHandler.php @@ -277,8 +277,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: |