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

2021-07-28 Thread Junichi Yamamoto (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-5882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17388761#comment-17388761
 ] 

Junichi Yamamoto commented on NETBEANS-5882:


No problem.

> Then I'll schedule some time to change the class/namespace names to make our 
> code more forward-compatible with PHP8

Great!

Thank you for your understanding. Will close this.

> 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
>Priority: Minor
>
> 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-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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



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

2021-07-28 Thread Andreas Erhard (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-5882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17388717#comment-17388717
 ] 

Andreas Erhard commented on NETBEANS-5882:
--

Thank you very much for the incredibly fast response, Junichi! Then I'll 
schedule some time to change the class/namespace names to make our code more 
forward-compatible with PHP8 - which we would need to do at one point anyway. 
Just wanted to make sure I did not miss something like a hidden setting.

Best regards from Austria

Andreas

> 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
>Priority: Minor
>
> 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-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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



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

2021-07-28 Thread Junichi Yamamoto (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-5882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17388714#comment-17388714
 ] 

Junichi Yamamoto commented on NETBEANS-5882:


Well, we support the syntax of only the latest version of PHP if there is a BC 
break(e.g. "match" keyword) because we don't want to have multiple parsers.

In such a case, sooner or later, I think a user has to fix it.

 

> 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
>Priority: Minor
>
> 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-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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