Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support Php 8.2 attributes #8262

Closed
staabm opened this issue Jul 14, 2022 · 1 comment · Fixed by #8427
Closed

support Php 8.2 attributes #8262

staabm opened this issue Jul 14, 2022 · 1 comment · Fixed by #8427

Comments

@staabm
Copy link
Contributor

staabm commented Jul 14, 2022

SensitiveParameter
https://psalm.dev/r/c64fea59b9
phpstan/phpstan-src#1511

AllowDynamicProperties
https://psalm.dev/r/1d98292ecb
phpstan/phpstan-src#1478

@psalm-github-bot
Copy link

I found these snippets:

https://psalm.dev/r/c64fea59b9
<?php

 namespace SensitiveParameter;

 class HelloWorld {

 	public function __construct(
 		#[\SensitiveParameter]
 		string $password
 	) {
 	}

 }
Psalm output (using commit 2a72a24):

INFO: UndefinedAttributeClass - 8:6 - Attribute class SensitiveParameter does not exist
https://psalm.dev/r/1d98292ecb
<?php

  namespace AllowDynamicPropertiesAttribute;

  #[\AllowDynamicProperties]
 class Foo
 {

  }
Psalm output (using commit 2a72a24):

INFO: UndefinedAttributeClass - 5:5 - Attribute class AllowDynamicProperties does not exist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants