我有一个错误:警告:count():参数必须是实现Countable的数组或对象
public static function setSection( $section, $section_data = array(), $additional_section_data = array() ) {
if(count($additional_section_data) > 0 && !empty($additional_section_data)){
$section_data['fields'] = array_merge($section_data['fields'], $additional_section_data);
}
self::$sections[ $section ] = $section_data;
}