CakeFest 2025 Madrid: The Official CakePHP Conference

SensitiveParameterValue::__debugInfo

(PHP 8 >= 8.2.0)

SensitiveParameterValue::__debugInfoProtects the sensitive value against accidental exposure

Description

public SensitiveParameterValue::__debugInfo(): array

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

Parameters

This function has no parameters.

Return Values

An empty array.

Examples

Example #1 Passing a SensitiveParameterValue object to var_dump()

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

var_dump($s);
?>

The above example will output:

object(SensitiveParameterValue)#1 (0) {
}

add a note

User Contributed Notes

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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant