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

   ### Apache NetBeans version
   
   Apache NetBeans 19
   
   ### What happened
   
   please, check the code. Both "testA" and "testB" are used in __constuct(), 
but "testB" is marked as "unused"
   
   ```
   class A
   {
       public function __construct(
               private string $testA,
               private string $testB,
           )
       {
           echo $this->testA;
           echo $testB;
       }
   }
   
   $a = new A('testA', 'testB');
   ```
   
   screenshot
   ![unused 
vars](https://github.com/apache/netbeans/assets/190661/1ff9a33e-3ee3-416c-a824-810f03d03945)
   
   expected result: testB should not be marked as unused
   
   php 8.2 is set in project settings
   
   ### How to reproduce
   
   _No response_
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Netbeans 19, Win11
   
   ### JDK
   
   JDK 20
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   every time
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to