SensitiveParameterValue::__debugInfo
PHP function
Edit on GitHub ✎
(PHP 8 >= 8.2.0)
Protects the sensitive value against accidental exposure
Description
SensitiveParameterValue::__debugInfo(): array
Returns an empty Array to protect the sensitive value against accidental exposure when using var_dump().
Parameters Parameters
Return Values
An empty Array.
Examples
Passing a SensitiveParameterValue object to var_dump()
php
<?php
$s = new \SensitiveParameterValue('secret');
var_dump($s);
?>The above example will output:
output
object(SensitiveParameterValue)#1 (0) {
}