Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<BackedEnum::tryFromSensitiveParameterValue::__construct>
^Predefined Interfaces and ClassesLast updated: Mon, 26 Oct 2026

The SensitiveParameterValue class

(PHP 8 >= 8.2.0)

Introduction

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.

Class synopsis

final class SensitiveParameterValue {
/* Properties */
private readonly mixed $value;
/* Methods */
public function __construct(mixed $value)
public function __debugInfo(): array
public function getValue(): mixed
}

Properties

value

The sensitive value to be protected against accidental exposure.

Table of Contents


<BackedEnum::tryFromSensitiveParameterValue::__construct>
^Predefined Interfaces and ClassesLast updated: Mon, 26 Oct 2026