Hide Sensitive Parameter

no-email (Damien Seguy), Damien Seguy
Tue, 02 Jan 2024 00:00:00 +0000

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().