Hide Sensitive ParameterΒΆ

PHP 8.2 has the #[SensitiveParameter] attribute that hides values in debug messages.

There is also the SensitiveParameterValue class, that does the same, while working from the caller perspective. Get the value with $object->getValue().

../_images/sensitiveParameter.png