cuescore opened a new issue, #4632:
URL: https://github.com/apache/netbeans/issues/4632
### Apache NetBeans version
Apache NetBeans 14
### What happened
I want to use Netbeans > 11.3, but I work on PHP code for PHP7.4 and have a
class Match, and "match" is a reserved keyword in PHP8. In Netbeans > 11.3
(I've tested 12/13/14) I can set the project properties to use PHP7.4, but it
will still give me a syntax error for using the Match class:
"Syntax error, unexpected :: after match, expected ("
I expected the syntax error to not be a syntax error for PHP7.4 projects,
but I can't seem to shake it.
Is this a bug, or is there something I can do about this?
### How to reproduce
Create a class Match and try to use a constant in it f.ex.
Will yield a syntax error even though the project is for PHP7.4.
### Did this work correctly in an earlier version?
Apache NetBeans 12.3 or earlier
### Operating System
Fedora Linux
### JDK
java-1.8.0-openjdk.x86_64
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
_No response_
### Are you willing to submit a pull request?
No
### Code of Conduct
Yes
--
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