Skip to content
Snippets Groups Projects
Unverified Commit 9912d5b1 authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #17555 from seamuslee001/dev_core_560_deprecated_function_warning

#560 Add in deprecated function warning now that fatal is dep…
parents 46662be0 33968e94
Branches
Tags
No related merge requests found
......@@ -301,6 +301,7 @@ class CRM_Core_Error extends PEAR_ErrorStack {
* @throws Exception
*/
public static function fatal($message = NULL, $code = NULL, $email = NULL) {
CRM_Core_Error::deprecatedFunctionWarning('throw new CRM_Core_Exception or use CRM_Core_Error::statusBounce', 'CRM_Core_Error::fatal');
$vars = [
'message' => $message,
'code' => $code,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment