We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Apache NetBeans 24
A private constant property gets marked as unused although used in class attributes:
Other related functionality executed on this class constant like
works as expected and handles its usage inside the attribute without a problem.
PHP
<?php namespace FooBar; use Attribute; #[Attribute(Attribute::TARGET_CLASS)] class SomeAttribute { public function __construct(string $name) {} } #[SomeAttribute(name: self::NAME)] class Test { private const string NAME = 'foobar'; }
No / Don't know
Windows
jdk-23.0.2
Apache NetBeans provided installer
No response
No
The text was updated successfully, but these errors were encountered:
Thank you for reporting it. Reproducible.
Sorry, something went wrong.
Fix incorrect unused constants [apacheGH-8244]
45332c9
- apache#8244 - Scan attributes after `ConstantDeclaration`s are scanned
@junichi11 I have to thank you for your really great work! 👍
junichi11
Successfully merging a pull request may close this issue.
Apache NetBeans version
Apache NetBeans 24
What happened
Current behavior
A private constant property gets marked as unused although used in class attributes:
Expected behavior
Related
Other related functionality executed on this class constant like
works as expected and handles its usage inside the attribute without a problem.
Language / Project Type / NetBeans Component
PHP
How to reproduce
Did this work correctly in an earlier version?
No / Don't know
Operating System
Windows
JDK
jdk-23.0.2
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
No response
Are you willing to submit a pull request?
No
The text was updated successfully, but these errors were encountered: