@@ -75,7 +75,7 @@ class OneLogin_Saml2_Auth
7575 * SessionNotOnOrAfter. When the user is logged, this stored it
7676 * from the AuthnStatement of the SAML Response
7777 *
78- * @var DateTime
78+ * @var int|null
7979 */
8080 private $ _sessionExpiration ;
8181
@@ -97,7 +97,7 @@ class OneLogin_Saml2_Auth
9797 * The NotOnOrAfter value of the valid SubjectConfirmationData
9898 * node (if any) of the last assertion processed
9999 *
100- * @var DateTime
100+ * @var int
101101 */
102102 private $ _lastAssertionNotOnOrAfter ;
103103
@@ -111,7 +111,7 @@ class OneLogin_Saml2_Auth
111111 /**
112112 * Reason of the last error.
113113 *
114- * @var string
114+ * @var string|null
115115 */
116116 private $ _errorReason ;
117117
@@ -164,7 +164,7 @@ public function getSettings()
164164 *
165165 * @param bool $value Strict parameter
166166 *
167- * @return array The settings data.
167+ * @throws OneLogin_Saml2_Error
168168 */
169169 public function setStrict ($ value )
170170 {
@@ -305,6 +305,8 @@ public function processSLO($keepLocalSession = false, $requestId = null, $retrie
305305 * @param string $url The target URL to redirect the user.
306306 * @param array $parameters Extra parameters to be passed as part of the url
307307 * @param bool $stay True if we want to stay (returns the url string) False to redirect
308+ *
309+ * @return string|null
308310 */
309311 public function redirectTo ($ url = '' , $ parameters = array (), $ stay = false )
310312 {
@@ -401,7 +403,7 @@ public function getErrors()
401403 /**
402404 * Returns the reason for the last error
403405 *
404- * @return string Error reason
406+ * @return string|null Error reason
405407 */
406408 public function getLastErrorReason ()
407409 {
@@ -436,7 +438,7 @@ public function getAttribute($name)
436438 * @param bool $stay True if we want to stay (returns the url string) False to redirect
437439 * @param bool $setNameIdPolicy When true the AuthNReuqest will set a nameIdPolicy element
438440 *
439- * @return If $stay is True, it return a string with the SLO URL + LogoutRequest + parameters
441+ * @return string|null If $stay is True, it return a string with the SLO URL + LogoutRequest + parameters
440442 */
441443 public function login ($ returnTo = null , $ parameters = array (), $ forceAuthn = false , $ isPassive = false , $ stay = false , $ setNameIdPolicy = true )
442444 {
@@ -662,7 +664,7 @@ public function getLastAssertionId()
662664 }
663665
664666 /**
665- * @return The NotOnOrAfter value of the valid
667+ * @return int The NotOnOrAfter value of the valid
666668 * SubjectConfirmationData node (if any)
667669 * of the last assertion processed
668670 */
@@ -675,7 +677,7 @@ public function getLastAssertionNotOnOrAfter()
675677 * Returns the most recently-constructed/processed
676678 * XML SAML request (AuthNRequest, LogoutRequest)
677679 *
678- * @return string The Request XML
680+ * @return string|null The Request XML
679681 */
680682 public function getLastRequestXML ()
681683 {
@@ -688,7 +690,7 @@ public function getLastRequestXML()
688690 * If the SAMLResponse was encrypted, by default tries
689691 * to return the decrypted XML.
690692 *
691- * @return string The Response XML
693+ * @return string|null The Response XML
692694 */
693695 public function getLastResponseXML ()
694696 {
0 commit comments