Function called by password_reset action passed only 1 argument instead of 2 in PHP 7.2.11

Function called by password_reset action passed only 1 argument instead of 2 in PHP 7.2.11

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