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

Class #[\Override] brought in PHP8.3 shouldn't be reported in Previous PHP versions #4832

Open
jcvignoli opened this issue Jan 2, 2024 · 0 comments

Comments

@jcvignoli
Copy link

When using class #[\Override] with PHP < 8.3, phan complains about a PhanUndeclaredClassAttribute error. The all point of those classes is to be ignored by previous PHP versions.

I usually work with a local in PHP8.2, but I develop for PHP8.3 environment, so I would appreciate not to need to escape these false positives.

Using:
Phan 5.4.3
php-ast version 1.1.1
PHP version used to run Phan: 8.2.14

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

No branches or pull requests

1 participant