From 9b67b0a710a131bcba330bffa3d6b31de1a07d77 Mon Sep 17 00:00:00 2001 From: Thijs Kinkhorst <thijs@kinkhorst.com> Date: Fri, 22 Jun 2018 14:25:21 +0000 Subject: [PATCH] Make type of derived class fromException method match parent --- 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 605624190..ad0349f89 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 -- GitLab