diff --git a/modules/saml/lib/IdP/SAML2.php b/modules/saml/lib/IdP/SAML2.php
index 9ed2e7b2c6e89ff48fadd391417b83453dc3a825..d4a02d5ff06afd677233a061a9e97788fdb2ae7f 100644
--- a/modules/saml/lib/IdP/SAML2.php
+++ b/modules/saml/lib/IdP/SAML2.php
@@ -1146,9 +1146,9 @@ class SAML2
      *
      * @param \SimpleSAML\Configuration $idpMetadata The metadata of the IdP.
      * @param \SimpleSAML\Configuration $spMetadata The metadata of the SP.
-     * @param string                   $consumerURL The Destination URL of the response.
+     * @param string                    $consumerURL The Destination URL of the response.
      *
-     * @return \SAML2\LogoutResponse The SAML2 LogoutResponse corresponding to the given data.
+     * @return \SAML2\Response The SAML2 Response corresponding to the given data.
      */
     private static function buildResponse(
         Configuration $idpMetadata,