[jira] [Commented] (NETBEANS-2158) No error when accessing undeclared or private properties

2019-09-15 Thread Czukowski (Jira)


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

Czukowski commented on NETBEANS-2158:
-

[~fabs25], [~hosunlee] this is not necessarily an error, some PHP classes 
implement wild magic tricks to allow just that and NetBeans would have to work 
really hard to not produce a false positive warning in those cases. I suggest 
you give PHPStan a try, which is specifically designed to parse PHP code and 
warn about all kinds of errors, Netbeans has a support for it.

> No error when accessing undeclared or private properties
> 
>
> Key: NETBEANS-2158
> URL: https://issues.apache.org/jira/browse/NETBEANS-2158
> Project: NetBeans
>  Issue Type: New Feature
>  Components: php - Code Analysis, php - Editor
>Affects Versions: 10.0, 11.0
>Reporter: Fabian Kleinhans
>Priority: Major
>  Labels: php, php7
> Attachments: code.png
>
>
> Hi,
> I just switched from Netbeans 8.2 to 10 some days ago. Now I wonder why 
> accessing undeclared or private properties in my PHP files are not marked in 
> the code like in 8.2. E.g.:
> {code:java}
>  class A {
>  
>   private $bar;
>  
>   public function __construct() {
>     $this->bar = 1;
>   }
> }
> $foo = new A();
> echo $foo->bar;
> echo $foo->bar2;
> {code}
> This code has green status saying "No errors". The project is set as 
> PHP-project.
> Have I missed a setting? I spent hours of research but didn't find a solution.
> Thanks for any hint!
> Fabian
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
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-2158) No error when accessing undeclared or private properties

2019-07-22 Thread Junichi Yamamoto (JIRA)


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

Junichi Yamamoto commented on NETBEANS-2158:


This is not a bug. I'm worried about performance. Hint feature is called many 
times. So, if it takes much time to analyze it, performance would be bad, maybe.

> No error when accessing undeclared or private properties
> 
>
> Key: NETBEANS-2158
> URL: https://issues.apache.org/jira/browse/NETBEANS-2158
> Project: NetBeans
>  Issue Type: New Feature
>  Components: php - Code Analysis, php - Editor
>Affects Versions: 10.0, 11.0
>Reporter: Fabian Kleinhans
>Priority: Major
>  Labels: php, php7
> Attachments: code.png
>
>
> Hi,
> I just switched from Netbeans 8.2 to 10 some days ago. Now I wonder why 
> accessing undeclared or private properties in my PHP files are not marked in 
> the code like in 8.2. E.g.:
> {code:java}
>  class A {
>  
>   private $bar;
>  
>   public function __construct() {
>     $this->bar = 1;
>   }
> }
> $foo = new A();
> echo $foo->bar;
> echo $foo->bar2;
> {code}
> This code has green status saying "No errors". The project is set as 
> PHP-project.
> Have I missed a setting? I spent hours of research but didn't find a solution.
> Thanks for any hint!
> Fabian
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
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-2158) No error when accessing undeclared or private properties

2019-03-15 Thread Hosun Lee (JIRA)


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

Hosun Lee commented on NETBEANS-2158:
-

Is there any solution or update yet? Have the same issue and it makes it hard 
to work with this IDE.

Without working validation of variables and methods visibility there is a high 
risk of making errors in development without knowing it.

> No error when accessing undeclared or private properties
> 
>
> Key: NETBEANS-2158
> URL: https://issues.apache.org/jira/browse/NETBEANS-2158
> Project: NetBeans
>  Issue Type: Improvement
>  Components: php - Code Analysis
>Affects Versions: 10.0
>Reporter: Fabian Kleinhans
>Priority: Major
>  Labels: php, php7
> Attachments: code.png
>
>
> Hi,
> I just switched from Netbeans 8.2 to 10 some days ago. Now I wonder why 
> accessing undeclared or private properties in my PHP files are not marked in 
> the code like in 8.2. E.g.:
> {code:java}
>  class A {
>  
>   private $bar;
>  
>   public function __construct() {
>     $this->bar = 1;
>   }
> }
> $foo = new A();
> echo $foo->bar;
> echo $foo->bar2;
> {code}
> This code has green status saying "No errors". The project is set as 
> PHP-project.
> Have I missed a setting? I spent hours of research but didn't find a solution.
> Thanks for any hint!
> Fabian
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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