简介
PHP Manual
PHP Manual»预定义接口和类»SensitiveParameterValue

SensitiveParameterValue 类

(PHP 8 >= 8.2.0)

SensitiveParameterValue 类允许包装敏感值以防止意外暴露。

具有 SensitiveParameter 属性的参数值将在堆栈跟踪中自动包装在 SensitiveParameterValue 对象中。

final class SensitiveParameterValue {
/* 属性 */
private readonly mixed $value;
/* 方法 */
public function __construct(mixed $value)
public function __debugInfo(): array
public function getValue(): mixed
}
value

需要防止意外暴露的敏感值。

目录

To Top