You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Jayce (Jira)" <ji...@apache.org> on 2020/12/03 07:42:00 UTC
[jira] [Commented] (NETBEANS-1921) Doesn't recognize single
assignments on PHP Ternary Operator
[ https://issues.apache.org/jira/browse/NETBEANS-1921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17242976#comment-17242976 ]
Jayce commented on NETBEANS-1921:
---------------------------------
[~junichi11] I think this one is corrected in (at least) dev build.
{code:java}
$foo = null;
$test = (true) ? $foo = 1 : $foo = 2;
{code}
Netbeans does not complain about re-assignment of $foo in the ternary operator
> Doesn't recognize single assignments on PHP Ternary Operator
> ------------------------------------------------------------
>
> Key: NETBEANS-1921
> URL: https://issues.apache.org/jira/browse/NETBEANS-1921
> Project: NetBeans
> Issue Type: Bug
> Components: php - Editor
> Affects Versions: 9.0
> Environment: Windows 7 Pro SP1 x64
> Reporter: Oscar F. Bustos Mora
> Priority: Minor
> Labels: starter
> Attachments: asas.jpg
>
>
> When doing ternary operator, NetBeans is assuming that in the line, a variable is set twice instead setting it as result of an condition.
> I know it's a visual annoyance and i kow how to disable this underlining but maybe should inform about this.
--
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