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

This blog is created by Stuart Page

I'm a freelance web developer and technology consultant based in Surrey, UK, with over 10 years experience in web development, DevOps, Linux Administration, and IT solutions.

Need support with your infrastructure or web services?

Get in touch