Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-2158

No error when accessing undeclared or private properties

    XMLWordPrintableJSON

Details

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

      <?php
      class A {
       
        private $bar;
       
        public function __construct() {
          $this->bar = 1;
        }
      }
      
      $foo = new A();
      echo $foo->bar;
      echo $foo->bar2;
      

      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

       

      Attachments

        1. code.png
          9 kB
          Fabian Kleinhans

        Activity

          People

            Unassigned Unassigned
            fabs25 Fabian Kleinhans
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: