From 28ebc64a67353cd7273f052fd85c601810b2fa8c Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 18 Apr 2023 08:01:00 -0400 Subject: [PATCH] Deprecate unused 'validContact' function --- CRM/Utils/Rule.php | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.25.1