$isSensitive = false;
if (
\method_exists($parameter, 'getAttributes')
- && !empty($parameter->getAttributes(\wcf\SensitiveArgument::class))
+ && (
+ !empty($parameter->getAttributes(\wcf\SensitiveArgument::class))
+ || !empty($parameter->getAttributes(\SensitiveParameter::class))
+ )
) {
$isSensitive = true;
}
$isSensitive = false;
if (
\method_exists($parameter, 'getAttributes')
- && !empty($parameter->getAttributes(\wcf\SensitiveArgument::class))
+ && (
+ !empty($parameter->getAttributes(\wcf\SensitiveArgument::class))
+ || !empty($parameter->getAttributes(\SensitiveParameter::class))
+ )
) {
$isSensitive = true;
}