From 76d6d13dbed4704e522c11124dd9c29c598165ac Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 2 Jan 2024 14:50:08 +1300 Subject: [PATCH] Deprecate passing in month --- CRM/Utils/Date.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Utils/Date.php b/CRM/Utils/Date.php index fcb0ec2337..25348a4154 100644 --- a/CRM/Utils/Date.php +++ b/CRM/Utils/Date.php @@ -258,7 +258,7 @@ class CRM_Utils_Date { /** * Return abbreviated month names according to the locale. * - * @param bool|string $month + * @param bool|string $month (deprecated) * * @return array|string * 1-based array with abbreviated month names @@ -278,6 +278,7 @@ class CRM_Utils_Date { )); } if ($month) { + CRM_Core_Error::deprecatedWarning('passing in month is deprecated'); return \Civi::$statics[__CLASS__][$key][$month]; } return \Civi::$statics[__CLASS__][$key]; -- 2.25.1