rarila opened a new issue, #8244:
URL: https://github.com/apache/netbeans/issues/8244

   ### Apache NetBeans version
   
   Apache NetBeans 24
   
   ### What happened
   
   ## Current behavior
   
   A private constant property gets marked as unused although used in class 
attributes:
   
   
![Image](https://github.com/user-attachments/assets/5c0bd052-1a34-4045-b3cd-6ec7f3d909ac)
   
   ## Expected behavior
   
   
![Image](https://github.com/user-attachments/assets/92c36833-4091-4b91-a2b9-099d00571c32)
   
   ## Related
   
   Other related functionality executed on this class constant like 
    
   - Find usage
   - Go to Deklaration
   - Refactor->Rename
   
   works as expected and handles its usage inside the attribute without a 
problem.
   
   ### Language / Project Type / NetBeans Component
   
   PHP
   
   ### How to reproduce
   
   ```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';
   }
   ```
   
   ### 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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to