From d15b68ea48cfb1b5924df8942f586b30bb6056e3 Mon Sep 17 00:00:00 2001 From: Noah Miller Date: Sat, 14 Oct 2023 16:51:43 -0400 Subject: [PATCH] the experiment that @colemanw suggested: reject non-array $list param --- CRM/Utils/Array.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Utils/Array.php b/CRM/Utils/Array.php index b96b4bbc63..3045fb38fe 100644 --- a/CRM/Utils/Array.php +++ b/CRM/Utils/Array.php @@ -70,8 +70,8 @@ class CRM_Utils_Array { if ($list instanceof ArrayAccess) { return $list->offsetExists($key) ? $list[$key] : $default; } - // @todo - eliminate these from core & uncomment this line. - // CRM_Core_Error::deprecatedFunctionWarning('You have passed an invalid parameter for the "list"'); + // @todo - eliminate invalid usages from core & uncomment this line. + CRM_Core_Error::deprecatedFunctionWarning('an array/ArrayAccess for the "list" parameter'); return $default; } -- 2.25.1