AutoComplete for PHP makes suggestions that it should not know about:
The example above shows the cursor inside a method in which nothing has been defined, including the variable $dbw. I have typed the arrow and AutoComplete is suggesting methods and properties from a class named db_writer. But how has this happened when there is no context to suggest it? How does AutoComplete know that $dbw will refer to db_writer? It should not.
$dbw is a variable I often use when creating an instance of db_writer. Such instances occur elsewhere in this particular module. So I tried this:
As can be seen, AutoComplete is now correctly showing the methods for the class admin_list_table.
This tells me that AutoComplete is looking outside the scope of the current method and inferring that $dbw will refer to the class db_writer.
I consider this an error. Other tools, including VS Code, do not make this mistake.
Note: I am beginning to mention Visual Studio Code in some of my contributions to the forums. It should not be assumed that I do so because VS Code is better than Rapid PHP. In this case, VSC's autocomplete is more annoying than Rapid's because it makes suggestions that are very unlikely even if syntactically or semantically possible. When Rapid PHP's AutoComplete does not make errors as described above, it is extremely accurate, more so than VSC's. I mention VSC because, being free, it is always installed on my primary PC.