diff --git a/modules/saml/lib/IdP/SAML2.php b/modules/saml/lib/IdP/SAML2.php
index af4f4691f6c514c7779fe5b3aab03bffe82cfd28..a02c8fc6c04439b19173469daf451a7e1d1d176f 100644
--- a/modules/saml/lib/IdP/SAML2.php
+++ b/modules/saml/lib/IdP/SAML2.php
@@ -663,7 +663,7 @@ class sspmod_saml_IdP_SAML2
      * Calculate the NameID value that should be used.
      *
      * @param SimpleSAML_Configuration $idpMetadata The metadata of the IdP.
-     * @param SimpleSAML_Configuration $dstMetadata The metadata of the SP.
+     * @param SimpleSAML_Configuration $spMetadata The metadata of the SP.
      * @param array                    &$state The authentication state of the user.
      *
      * @return string  The NameID value.