This is the solution, it seems like it returned an array before:
$widgets_section = (object) $wp_customize->get_panel( 'widgets' );
$widgets_section->title = __( 'Widgets' );
$widgets_section->priority = 4;
This is the solution, it seems like it returned an array before:
$widgets_section = (object) $wp_customize->get_panel( 'widgets' );
$widgets_section->title = __( 'Widgets' );
$widgets_section->priority = 4;