diff --git a/lib/SimpleSAML/Metadata/MetaDataStorageSource.php b/lib/SimpleSAML/Metadata/MetaDataStorageSource.php
index 81e0485e7471c3d20d82ce2c4def66ccc1098d89..fdb5d28b451a07c34837b9c93eee519eed90291c 100644
--- a/lib/SimpleSAML/Metadata/MetaDataStorageSource.php
+++ b/lib/SimpleSAML/Metadata/MetaDataStorageSource.php
@@ -116,7 +116,7 @@ abstract class SimpleSAML_Metadata_MetaDataStorageSource
      * @param string $set Which set of metadata we are looking it up in.
      * @param string $type Do you want to return the metaindex or the entityID. [entityid|metaindex]
      *
-     * @return array|null An entity id which matches the given host/path combination, or NULL if
+     * @return string|null An entity id which matches the given host/path combination, or NULL if
      *         we are unable to locate one which matches.
      */
     public function getEntityIdFromHostPath($hostPath, $set, $type = 'entityid')