@@ -399,7 +399,7 @@ public static function setBaseURLPath($baseurlpath)
399399 }
400400
401401 /**
402- * return string The baseurlpath to be used when constructing URLs
402+ * @ return string The baseurlpath to be used when constructing URLs
403403 */
404404 public static function getBaseURLPath ()
405405 {
@@ -712,7 +712,7 @@ public static function parseSAML2Time($time)
712712 * duration to. Optional, default to the
713713 * current time.
714714 *
715- * @return int|null The new timestamp, after the duration is applied.
715+ * @return int The new timestamp, after the duration is applied.
716716 *
717717 * @throws Exception
718718 */
@@ -796,8 +796,8 @@ public static function parseDuration($duration, $timestamp = null)
796796 /**
797797 * Compares 2 dates and returns the earliest.
798798 *
799- * @param string $cacheDuration The duration, as a string.
800- * @param string $validUntil The valid until date, as a string or as a timestamp
799+ * @param string|null $cacheDuration The duration, as a string.
800+ * @param string|int|null $validUntil The valid until date, as a string or as a timestamp
801801 *
802802 * @return int|null $expireTime The expiration time.
803803 */
@@ -827,9 +827,9 @@ public static function getExpireTime($cacheDuration = null, $validUntil = null)
827827 /**
828828 * Extracts nodes from the DOMDocument.
829829 *
830- * @param DOMDocument $dom The DOMDocument
831- * @param string $query \Xpath Expresion
832- * @param DOMElement $context Context Node (DOMElement)
830+ * @param DOMDocument $dom The DOMDocument
831+ * @param string $query \Xpath Expresion
832+ * @param DOMElement|null $context Context Node (DOMElement)
833833 *
834834 * @return DOMNodeList The queried nodes
835835 */
@@ -950,7 +950,7 @@ public static function formatFingerPrint($fingerprint)
950950 *
951951 * @param string $value fingerprint
952952 * @param string $spnq SP Name Qualifier
953- * @param string $format SP Format
953+ * @param string|null $format SP Format
954954 * @param string|null $cert IdP Public cert to encrypt the nameID
955955 * @param string|null $nq IdP Name Qualifier
956956 *
@@ -1382,10 +1382,10 @@ public static function validateSign($xml, $cert = null, $fingerprint = null, $fi
13821382 /**
13831383 * Validates a binary signature
13841384 *
1385- * @param string $messageType Type of SAML Message
1386- * @param array $getData HTTP GET array
1387- * @param array $idpData IdP setting data
1388- * @param string|null $retrieveParametersFromServer Indicates where to get the values in order to validate the Sign, from getData or from $_SERVER
1385+ * @param string $messageType Type of SAML Message
1386+ * @param array $getData HTTP GET array
1387+ * @param array $idpData IdP setting data
1388+ * @param bool $retrieveParametersFromServer Indicates where to get the values in order to validate the Sign, from getData or from $_SERVER
13891389 *
13901390 * @return bool
13911391 *
0 commit comments