admin/environment/php setting/zend.exception ignore args
De MoodleDocs
The zend.exception_ignore_args INI directive in PHP controls whether function arguments are included in stack traces generated from exceptions. This setting was introduced in PHP 7.4.
Purpose:The primary purpose of zend.exception_ignore_args is to prevent the accidental disclosure of sensitive information that might be passed as arguments to functions, especially in production environments where stack traces could be exposed to users or logged in insecure locations.
See https://wiki.php.net/rfc/exception_ignore_args_default_value