You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Andreas Erhard (Jira)" <ji...@apache.org> on 2021/07/28 11:43:01 UTC

[jira] [Created] (NETBEANS-5882) Allow to set PHP version for syntax check

Andreas Erhard created NETBEANS-5882:
----------------------------------------

             Summary: Allow to set PHP version for syntax check
                 Key: NETBEANS-5882
                 URL: https://issues.apache.org/jira/browse/NETBEANS-5882
             Project: NetBeans
          Issue Type: Bug
          Components: php - Code Analysis
    Affects Versions: 12.4
            Reporter: Andreas Erhard


The possibility to set/utilize the PHP version (as selectable in the project properties) for the PHP syntax check would be quite useful. Due to the fact that PHP8 reserves more keywords, code which uses those e.g. in namespace or for class names is marked as invalid (syntax error).

However, those PHP files have perfectly valid PHP 7.x syntax. Due to the error, working with the affected code becomes much harder (no auto-complete, no spotting of real syntax-errors, ...).

Is there some way to override the PHP version used for syntax checks? Thank you!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

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