Skip to content

Commit

Permalink
Remove redundant polyfill code for error reporting constants (#2555)
Browse files Browse the repository at this point in the history
  • Loading branch information
elidrissidev authored Sep 5, 2022
1 parent 926e005 commit 6a77e75
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions app/code/core/Mage/Core/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,6 @@ function mageCoreErrorHandler($errno, $errstr, $errfile, $errline)
if ($errno == 0) {
return false;
}
if (!defined('E_STRICT')) {
define('E_STRICT', 2048);
}
if (!defined('E_RECOVERABLE_ERROR')) {
define('E_RECOVERABLE_ERROR', 4096);
}
if (!defined('E_DEPRECATED')) {
define('E_DEPRECATED', 8192);
}

// Suppress deprecation warnings on PHP 7.x
if ($errno == E_DEPRECATED && version_compare(PHP_VERSION, '7.0.0', '>=')) {
Expand Down

0 comments on commit 6a77e75

Please sign in to comment.