Loosens the deprecation notice - alternative to https://github.com/civicrm/civicrm-core/pull/18716 but
we should merge both IMHO
CRM_Core_Error::deprecatedFunctionWarning('CRM_Core_Form::addRadio');
}
- if ($attributes && !is_array($attributes)) {
+ if ($type !== 'static' && $attributes && !is_array($attributes)) {
// 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.