From 464cd14722561d9bcc3ca5a3e8ceeb47f90c637f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Pe=CC=81rez?= <jaime.perez@uninett.no> Date: Mon, 4 Jul 2016 15:34:31 +0200 Subject: [PATCH] phpdoc: Add missing @throws to a couple of methods in SimpleSAML_Session. --- lib/SimpleSAML/Session.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/SimpleSAML/Session.php b/lib/SimpleSAML/Session.php index 5bd89debe..6d325d900 100644 --- a/lib/SimpleSAML/Session.php +++ b/lib/SimpleSAML/Session.php @@ -333,6 +333,8 @@ class SimpleSAML_Session * * @param Exception|null $exception An exception that made us use a transient session. Specify if you want to log a * message and that exception being thrown after loading the transient session. + * + * @throws * The exception contained in the $exception parameter, if any. */ public static function useTransientSession($exception = null) { @@ -517,6 +519,8 @@ class SimpleSAML_Session * * @param string $authority The authority the user logged in with. * @param array|null $data The authentication data for this authority. + * + * @throws \SimpleSAML\Error\CannotSetCookie If the authentication token cannot be set for some reason. */ public function doLogin($authority, array $data = null) { -- GitLab