Skip to content

Commit

Permalink
Revert "Update"
Browse files Browse the repository at this point in the history
This reverts commit 7909795.
  • Loading branch information
sreichel committed Jan 2, 2023
1 parent 7909795 commit cad8a5c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/code/core/Mage/Core/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,11 @@ function mageCoreErrorHandler($errno, $errstr, $errfile, $errline)
return false;
}

if (isset($_ENV['DEV_PHP_STRICT']) && $_ENV['DEV_PHP_STRICT'] == '1') {
return false;
}

// Suppress deprecation warnings on PHP 7.x
if ($errno == E_DEPRECATED && version_compare(PHP_VERSION, '7.0.0', '>=')) {
if ((!isset($_ENV['DEV_PHP_STRICT']) || $_ENV['DEV_PHP_STRICT'] != '1')
&& $errno == E_DEPRECATED
&& version_compare(PHP_VERSION, '7.0.0', '>=')
) {
return true;
}

Expand Down

0 comments on commit cad8a5c

Please sign in to comment.