From 6d1f59fe2d2a24b57f5d5f723e2922163f89991c Mon Sep 17 00:00:00 2001
From: Jaime Perez Crespo <jaime.perez@uninett.no>
Date: Thu, 16 Apr 2015 16:09:17 +0200
Subject: [PATCH] Schedule SimpleSAML_Utilities::fatalError() for removal and
 deprecate it.

---
 lib/SimpleSAML/Utilities.php | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/lib/SimpleSAML/Utilities.php b/lib/SimpleSAML/Utilities.php
index 6e3549e95..f130b24f8 100644
--- a/lib/SimpleSAML/Utilities.php
+++ b/lib/SimpleSAML/Utilities.php
@@ -487,22 +487,9 @@ class SimpleSAML_Utilities {
 
 
 	/**
-	 * Show and log fatal error message.
-	 *
-	 * This function logs a error message to the error log and shows the
-	 * message to the user. Script execution terminates afterwards.
-	 *
-	 * The error code comes from the errors-dictionary. It can optionally include parameters, which
-	 * will be substituted into the output string.
-	 *
-	 * @param string $trackId  The trackid of the user, from $session->getTrackID().
-	 * @param mixed $errorCode  Either a string with the error code, or an array with the error code and
-	 *                          additional parameters.
-	 * @param Exception $e  The exception which caused the error.
-	 * @deprecated
+	 * @deprecated This function will be removed in SSP 2.0. Please raise a SimpleSAML_Error_Error exception instead.
 	 */
 	public static function fatalError($trackId = 'na', $errorCode = null, Exception $e = null) {
-
 		throw new SimpleSAML_Error_Error($errorCode, $e);
 	}
 
-- 
GitLab