Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Netbeans - Fix PHP Method Code Completion

By default, Netbeans will show static methods after using $this-> or $someObject->, which is not correct. This can lead to you writing code incorrectly by accident. To fix this, follow the steps below:

Steps

Go to Tools -> Options .

In the dialogue box that appears:

  1. Go to the Editor tab.
  2. Click on the Code Completion sub-tab.
  3. Select **PHP*** for the Language dropdown.
  4. Make sure the two checkboxes are not checked.

Last updated: 3rd July 2021
First published: 3rd July 2021