PHP Conference Fukuoka 2025

The SensitiveParameterValue class

(PHP 8 >= 8.2.0)

็ฎ€ไป‹

The SensitiveParameterValue class allows wrapping sensitive values to protect them against accidental exposure.

Values of parameters having the SensitiveParameter attribute will automatically be wrapped inside of a SensitiveParameterValue object within stack traces.

็ฑปๆ‘˜่ฆ

final class SensitiveParameterValue {
/* ๅฑžๆ€ง */
private readonly mixed $value;
/* ๆ–นๆณ• */
public __construct(mixed $value)
public __debugInfo(): array
public getValue(): mixed
}

ๅฑžๆ€ง

value

The sensitive value to be protected against accidental exposure.

็›ฎๅฝ•

๏ผ‹ๆทปๅŠ ๅค‡ๆณจ

็”จๆˆท่ดก็Œฎ็š„ๅค‡ๆณจ

ๆญค้กต้ขๅฐšๆ— ็”จๆˆท่ดก็Œฎ็š„ๅค‡ๆณจใ€‚
To Top