Creating default object from empty value in wp_customize?

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;

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)