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

   ### Apache NetBeans version
   
   Apache NetBeans 24
   
   ### What happened
   
   I'm getting syntax error on valid syntax when language level is on 8.3.
   
   Since PHP 8.3 lazy static initialization happens during runtime instead of 
compile time, allowing non-constants to be assigned (functions, and even class 
variables).
   
   ### Language / Project Type / NetBeans Component
   
   _No response_
   
   ### How to reproduce
   
   ```php
   class MyClass
   {
       private int $variable = 1;
       function run() : void
       {
           static $functionResult = rand(); // shows "unexpected '(' after 
rand" error
           static $classVariable = $this->variable; // shows "unexpected 
'$this' after =" error
       }
   }
   ```
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Debian 12
   
   ### JDK
   
   OpenJDK 64-Bit Server VM (build 17.0.13+11-Debian-2deb12u1, mixed mode, 
sharing)
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### 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: [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