The SensitiveParameter attributeIntroductionThis attribute is used to mark a parameter that is sensitive and should have its value redacted if present in a stack trace. Class synopsis
final
SensitiveParameter
/* Methods */
public __construct()
Examples
Output of the above example in PHP 8.2 is similar to: Exception: Error! in example.php:7 Stack trace: #0 example.php(19): defaultBehavior('password', 'normal') #1 {main} Exception: Error! in example.php:15 Stack trace: #0 example.php(25): sensitiveParametersWithAttribute(Object(SensitiveParameterValue), 'normal') #1 {main}
|