[ https://issues.apache.org/jira/browse/NETBEANS-2158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fabian Kleinhans updated NETBEANS-2158: --------------------------------------- Description: 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} <?php 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 was: 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} <?php class A { private $bar; public function __construct() { $this->bar = 1; } } $foo = new A(); echo $foo->bar; echo $foo->bar2; {code} This code have 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 > 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} > <?php > 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