ArgumentCountError thrown

Too few arguments to function wp_user_hook_login_form(), 1 passed in D:\Inetpub\vhosts\arcal.pt\httpdocs\wp-includes\class-wp-hook.php on line 287 and exactly 2 expected