From: Coleman Watts Date: Tue, 18 Apr 2023 12:01:00 +0000 (-0400) Subject: Deprecate unused 'validContact' function X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=28ebc64a67353cd7273f052fd85c601810b2fa8c;p=civicrm-core.git Deprecate unused 'validContact' function --- diff --git a/CRM/Utils/Rule.php b/CRM/Utils/Rule.php index a396045737..3d11ef1945 100644 --- a/CRM/Utils/Rule.php +++ b/CRM/Utils/Rule.php @@ -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; }