How to add typehints to function in functions.php when argument is an object?

How to add typehints to function in functions.php when argument is an object?

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