<?php class Test { public function __construct( #[\SensitiveParameter] public string $password ) {} } $r = new ReflectionClass(Test::class); var_dump($r->getConstructor()->getParameters()[0]->getAttributes()); var_dump($r->getProperty('password')->getAttributes());
You have javascript disabled. You will not be able to edit any code.