This is caused by the PHP configuration. PHP 7.4 introduced a new .ini setting, zend.exception_ignore_args, that will ignore stack trace arguments. Check your .ini file to ensure this setting is set to Off or 0.
zend.exception_ignore_args
Off
0