Skip to content
Snippets Groups Projects
Commit 9b67b0a7 authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Make type of derived class fromException method match parent

parent e2ece52c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment