Merge pull request #661 from skipperbent/v5-development

Reverted exception handling to old behavior (issue: #660)
This commit is contained in:
Simon Sessingø
2023-04-24 20:08:17 +02:00
committed by GitHub
+2 -6
View File
@@ -443,12 +443,8 @@ class Router
}
}
} catch (\Throwable $e) {
if ($e instanceof Exception) {
return $this->handleException($e);
}
return $this->handleException(new Exception($e->getMessage(), $e->getCode()));
} catch (Exception $e) {
return $this->handleException($e);
}
if ($methodNotAllowed === true) {