diff --git a/modules/consent/lib/Auth/Process/Consent.php b/modules/consent/lib/Auth/Process/Consent.php
index b3df73e8cffc559f5a924d62c462b6ca51a82c57..3f38e471f28a6cec927002c41af395d7795c992c 100644
--- a/modules/consent/lib/Auth/Process/Consent.php
+++ b/modules/consent/lib/Auth/Process/Consent.php
@@ -235,7 +235,7 @@ class sspmod_consent_Auth_Process_Consent extends SimpleSAML_Auth_ProcessingFilt
 	 * Get a hash value that changes when attributes are added or attribute values changed.
 	 * @param boolean $includeValues Whether or not to include the attribute value in the generation of the hash.
 	 */
-	public function getAttributeHash($attributes, $includeValues = FALSE) {
+	public static function getAttributeHash($attributes, $includeValues = FALSE) {
 
 		$hashBase = NULL;	
 		if ($includeValues) {