diff --git a/modules/saml/lib/Error.php b/modules/saml/lib/Error.php index 9c28eab9e2edc95bd932444cb8a1248d5d334d8a..f8e7311b1f89224740e24e5b76ef4a52c77077cd 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