From 2f0e4861efa3b987ff341dac24f3c71c2f7f7179 Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tim.dijen@minbzk.nl>
Date: Fri, 21 Feb 2020 15:05:46 +0100
Subject: [PATCH] Fix method signature

---
 modules/saml/lib/Error.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/saml/lib/Error.php b/modules/saml/lib/Error.php
index 9c28eab9e..f8e7311b1 100644
--- a/modules/saml/lib/Error.php
+++ b/modules/saml/lib/Error.php
@@ -108,9 +108,9 @@ class Error extends \SimpleSAML\Error\Exception
      * status codes from an arbitrary exception.
      *
      * @param \Exception $exception  The original exception.
-     * @return \Exception  The new exception.
+     * @return \SimpleSAML\Error\Exception  The new exception.
      */
-    public static function fromException(\Exception $exception): \Exception
+    public static function fromException(\Exception $exception): \SimpleSAML\Error\Exception
     {
         if ($exception instanceof \SimpleSAML\Module\saml\Error) {
             // Return the original exception unchanged
-- 
GitLab