ArgumentCountError thrown

Too few arguments to function imaps_save_details_of_imap(), 1 passed in /home/415369.cloudwaysapps.com/weghzbkrwq/public_html/wp-includes/class-wp-hook.php on line 309 and exactly 2 expected