Plugin showing error

Remove “array” from your arguments declaration:

public function widget(array $args, $instance) should be public function widget($args, $instance)

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