You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Tomáš Procházka (Jira)" <ji...@apache.org> on 2020/11/22 17:26:00 UTC

[jira] [Updated] (NETBEANS-4822) variable variable gives incorrect warning of multiple assignment

     [ https://issues.apache.org/jira/browse/NETBEANS-4822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomáš Procházka updated NETBEANS-4822:
--------------------------------------
    Description: 
The code

{code:php}
$A="AA";
$$A=1; // set variable AA
{code}


incorrectly generates the warning "You should use only:1 assignment(s) (2 used)to a variable:$Ato avoid accidentally overwriting it and make your code easier to read.

Additionally, note the lack of spacing in the hint in both cases before the word "to" - ")to" and "Ato"

 

  was:
The code

{{<?php}}

{{$A="AA"; }}
{{$$A=1; // set variable AA}}

incorrectly generates the warning "You should use only:1 assignment(s) (2 used)to a variable:$Ato avoid accidentally overwriting it and make your code easier to read.

Additionally, note the lack of spacing in the hint in both cases before the word "to" - ")to" and "Ato"

 


> variable variable gives incorrect warning of multiple assignment
> ----------------------------------------------------------------
>
>                 Key: NETBEANS-4822
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4822
>             Project: NetBeans
>          Issue Type: Bug
>          Components: php - Editor
>    Affects Versions: 12.1
>         Environment: Windows 10. This is observed in NetBeans 11.0, 11.3, 12.0 and 12.1.
>            Reporter: Jonathan Mills
>            Priority: Minor
>
> The code
> {code:php}
> $A="AA";
> $$A=1; // set variable AA
> {code}
> incorrectly generates the warning "You should use only:1 assignment(s) (2 used)to a variable:$Ato avoid accidentally overwriting it and make your code easier to read.
> Additionally, note the lack of spacing in the hint in both cases before the word "to" - ")to" and "Ato"
>  



--
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