bmewburn / vscode-intelephense

PHP intellisense for Visual Studio Code
https://intelephense.com
Other
1.57k stars 93 forks source link

With PHP 8.3.2 SensitiveParameter attribute is unknown #2783

Closed swedeofenbound closed 3 months ago

swedeofenbound commented 5 months ago

Describe the bug Intelephense does not recon #[SensitiveParameter] attribute.

To Reproduce Use named PHP version and try doing this: public function __construct(#[SensitiveParameter] string $db = DB_DBNAME, #[SensitiveParameter] string $user = DB_USER, #[SensitiveParameter] string $pass = DB_PASS [...]

Expected behavior Intelephense not nagging about it, since the code runs fine with PHP 8.3.x

Screenshots image

Platform and version Win10 + Intelephense v1.10.2

Humbly, I understand it well it might have to do with 8.3 not being supported yet. Forgive the aspect of this being stated as a bug - however it is an issue :-)

bmewburn commented 4 months ago

It should be in there. What is the value of your intelephense.environment.phpVersion setting? Screenshot from 2024-03-07 14-57-49