Merge pull request #19233 from civicrm/5.33
[civicrm-core.git] / CRM / Core / Form.php
index 6d67ce875fe056495d8ad9523976baf73a865e5b..a508f692226e905ab0d1916c29b2e2431412f797 100644 (file)
@@ -373,7 +373,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
       // The $attributes param used to allow for strings and would default to an
       // empty string.  However, now that the variable is heavily manipulated,
       // we should expect it to always be an array.
-      Civi::log()->warning('Attributes passed to CRM_Core_Form::add() are not an array.', ['civi.tag' => 'deprecated']);
+      CRM_Core_Error::deprecatedWarning('Attributes passed to CRM_Core_Form::add() are not an array.');
     }
     // Fudge some extra types that quickform doesn't support
     $inputType = $type;