Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel committed Jan 2, 2023
1 parent 7129a30 commit 7909795
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/code/core/Mage/Core/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,12 @@ 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 ((!isset($_ENV['DEV_PHP_STRICT']) || $_ENV['DEV_PHP_STRICT'] != '1')
&& $errno == E_DEPRECATED
&& version_compare(PHP_VERSION, '7.0.0', '>=')
) {
if ($errno == E_DEPRECATED && version_compare(PHP_VERSION, '7.0.0', '>=')) {
return true;
}

Expand Down

0 comments on commit 7909795

Please sign in to comment.