diff --git a/modules/saml/lib/Error.php b/modules/saml/lib/Error.php index 605624190fdc6c708cc4027a6770996e5479a55a..ad0349f89e5a5de8f107249ff5b80971e3ad66c5 100644 --- a/modules/saml/lib/Error.php +++ b/modules/saml/lib/Error.php @@ -100,10 +100,10 @@ class Error extends \SimpleSAML\Error\Exception * This function attempts to create a SAML2 error with the appropriate * status codes from an arbitrary exception. * - * @param \SimpleSAML\Error\Exception $exception The original exception. + * @param \Exception $exception The original exception. * @return \SimpleSAML\Module\saml\Error The new exception. */ - public static function fromException(\SimpleSAML\Error\Exception $exception) + public static function fromException(\Exception $exception) { if ($exception instanceof \SimpleSAML\Module\saml\Error) { // Return the original exception unchanged