@@ -62,7 +62,7 @@ class OneLogin_Saml2_Auth
6262 * SessionNotOnOrAfter. When the user is logged, this stored it
6363 * from the AuthnStatement of the SAML Response
6464 *
65- * @var DateTime
65+ * @var int|null
6666 */
6767 private $ _sessionExpiration ;
6868
@@ -84,7 +84,7 @@ class OneLogin_Saml2_Auth
8484 * The NotOnOrAfter value of the valid SubjectConfirmationData
8585 * node (if any) of the last assertion processed
8686 *
87- * @var DateTime
87+ * @var int
8888 */
8989 private $ _lastAssertionNotOnOrAfter ;
9090
@@ -98,7 +98,7 @@ class OneLogin_Saml2_Auth
9898 /**
9999 * Reason of the last error.
100100 *
101- * @var string
101+ * @var string|null
102102 */
103103 private $ _errorReason ;
104104
@@ -150,8 +150,7 @@ public function getSettings()
150150 * Set the strict mode active/disable
151151 *
152152 * @param bool $value Strict parameter
153- *
154- * @return array The settings data.
153+ * @throws OneLogin_Saml2_Error
155154 */
156155 public function setStrict ($ value )
157156 {
@@ -292,6 +291,7 @@ public function processSLO($keepLocalSession = false, $requestId = null, $retrie
292291 * @param string $url The target URL to redirect the user.
293292 * @param array $parameters Extra parameters to be passed as part of the url
294293 * @param bool $stay True if we want to stay (returns the url string) False to redirect
294+ * @return string|null
295295 */
296296 public function redirectTo ($ url = '' , $ parameters = array (), $ stay = false )
297297 {
@@ -388,7 +388,7 @@ public function getErrors()
388388 /**
389389 * Returns the reason for the last error
390390 *
391- * @return string Error reason
391+ * @return string|null Error reason
392392 */
393393 public function getLastErrorReason ()
394394 {
@@ -423,7 +423,7 @@ public function getAttribute($name)
423423 * @param bool $stay True if we want to stay (returns the url string) False to redirect
424424 * @param bool $setNameIdPolicy When true the AuthNReuqest will set a nameIdPolicy element
425425 *
426- * @return If $stay is True, it return a string with the SLO URL + LogoutRequest + parameters
426+ * @return string|null If $stay is True, it return a string with the SLO URL + LogoutRequest + parameters
427427 */
428428 public function login ($ returnTo = null , $ parameters = array (), $ forceAuthn = false , $ isPassive = false , $ stay = false , $ setNameIdPolicy = true )
429429 {
@@ -463,7 +463,7 @@ public function login($returnTo = null, $parameters = array(), $forceAuthn = fal
463463 * @param string|null $nameIdFormat The NameID Format will be set in the LogoutRequest.
464464 * @param string|null $nameIdNameQualifier The NameID NameQualifier will be set in the LogoutRequest.
465465 *
466- * @return If $stay is True, it return a string with the SLO URL + LogoutRequest + parameters
466+ * @return string|null If $stay is True, it return a string with the SLO URL + LogoutRequest + parameters
467467 *
468468 * @throws OneLogin_Saml2_Error
469469 */
@@ -651,7 +651,7 @@ public function getLastAssertionId()
651651 }
652652
653653 /**
654- * @return The NotOnOrAfter value of the valid
654+ * @return int The NotOnOrAfter value of the valid
655655 * SubjectConfirmationData node (if any)
656656 * of the last assertion processed
657657 */
@@ -677,7 +677,7 @@ public function getLastRequestXML()
677677 * If the SAMLResponse was encrypted, by default tries
678678 * to return the decrypted XML.
679679 *
680- * @return string The Response XML
680+ * @return string|null The Response XML
681681 */
682682 public function getLastResponseXML ()
683683 {
0 commit comments