Dutch PHP Conference 2025 - Call For Papers

SensitiveParameterValue::__debugInfo

(PHP 8 >= 8.2.0)

SensitiveParameterValue::__debugInfoProtects the sensitive value against accidental exposure

Опис

public SensitiveParameterValue::__debugInfo(): array

Returns an empty array to protect the sensitive value against accidental exposure when using var_dump().

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

An empty array.

Приклади

Приклад #1 Passing a SensitiveParameterValue object to var_dump()

<?php
$s
= new \SensitiveParameterValue('secret');

var_dump($s);
?>

Поданий вище приклад виведе:

object(SensitiveParameterValue)#1 (0) {
}

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top