Deprecate unused 'validContact' function
authorColeman Watts <coleman@civicrm.org>
Tue, 18 Apr 2023 12:01:00 +0000 (08:01 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 18 Apr 2023 12:01:00 +0000 (08:01 -0400)
CRM/Utils/Rule.php

index a396045737226ac0d1c77bfd032b416376d7f10b..3d11ef1945cea470ec95986d8024dd476bf9d736 100644 (file)
@@ -878,12 +878,14 @@ class CRM_Utils_Rule {
   }
 
   /**
+   * @deprecated
    * @param mixed $value
    * @param mixed $actualElementValue
    *
    * @return bool
    */
   public static function validContact($value, $actualElementValue = NULL) {
+    CRM_Core_Error::deprecatedFunctionWarning('positiveInteger');
     if ($actualElementValue) {
       $value = $actualElementValue;
     }