diff --git a/modules/consent/lib/Auth/Process/Consent.php b/modules/consent/lib/Auth/Process/Consent.php
index ae2be3fb6b97f441da100255a3667545c153bf80..d497d40302eccae491c64160dc33d71fe670f3c2 100644
--- a/modules/consent/lib/Auth/Process/Consent.php
+++ b/modules/consent/lib/Auth/Process/Consent.php
@@ -223,7 +223,7 @@ class sspmod_consent_Auth_Process_Consent extends SimpleSAML_Auth_ProcessingFilt
 	/**
 	 * Get a targeted ID. An identifier that is unique per SP entity ID.
 	 */
-	public function getTargetedID($userid, $source, $destination) {
+	public static function getTargetedID($userid, $source, $destination) {
 		return hash('sha1', $userid . '|' . SimpleSAML_Utilities::getSecretSalt() . '|' . $source . '|' . $destination);
 	}