restore_error_handler();
if ($currErrorHandler !==
[$this, 'handleError'
]) { echo "\n", self::
colorize('THE ERROR HANDLER HAS CHANGED!', true
), "\n";
} $groups =
array_keys($this->deprecationGroups
);
// store failing status
$isFailing = !
$configuration->
tolerates($this->deprecationGroups
);
$this->
displayDeprecations($groups,
$configuration);
$this->
resetDeprecationGroups();
register_shutdown_function(function D
) use ($isFailing,
$groups,
$configuration) { foreach ($this->deprecationGroups
as $group) { if ($group->
count() > 0
) { echo "Shutdown-time deprecations:\n";
break;
} }