Skip to content

Commit

Permalink
Merge pull request #19330 from demeritcowboy/why
Browse files Browse the repository at this point in the history
Stop preventing test runs and dev sites from seeing PHP deprecation notices
  • Loading branch information
eileenmcnaughton authored Jan 7, 2021
2 parents 12a5995 + a2934b1 commit 1d2cb41
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions CRM/Core/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@ public static function &singleton($loadFromDB = TRUE, $force = FALSE) {
$GLOBALS['civicrm_default_error_scope'] = CRM_Core_TemporaryErrorScope::create(['CRM_Core_Error', 'handle']);
$errorScope = CRM_Core_TemporaryErrorScope::create(['CRM_Core_Error', 'simpleHandler']);

if (defined('E_DEPRECATED')) {
error_reporting(error_reporting() & ~E_DEPRECATED);
}

self::$_singleton = new CRM_Core_Config();
\Civi\Core\Container::boot($loadFromDB);
if ($loadFromDB && self::$_singleton->dsn) {
Expand Down

0 comments on commit 1d2cb41

Please sign in to comment.