CRM-19690 - CRM_Utils_Token::getAnonymousTokenDetails() - Add missing `static`
authorTim Otten <totten@civicrm.org>
Tue, 29 Nov 2016 23:47:00 +0000 (15:47 -0800)
committerTim Otten <totten@civicrm.org>
Tue, 20 Dec 2016 01:21:08 +0000 (17:21 -0800)
This function is only called once, and it previously lacked test coverage,
so the `static` warning previously snuck through. Fix it!

CRM/Utils/Token.php

index a23e9f3313d18f60059d68f0411613b5c1d0c819..26209d40e1ea92bfe97b26f3dd0825f262af0182 100644 (file)
@@ -1314,7 +1314,7 @@ class CRM_Utils_Token {
    * @return array
    *   contactDetails with hooks swapped out
    */
-  public function getAnonymousTokenDetails($contactIDs = array(
+  public static function getAnonymousTokenDetails($contactIDs = array(
       0,
     ),
                                            $returnProperties = NULL,