Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Auto-complete feature doesn't work if 'global' variable is declraed.
Auto-complete feature doesn't work if 'global' variable is declraed. [message #1779911] Mon, 15 January 2018 17:50
Vladimir Lev is currently offline Vladimir LevFriend
Messages: 1
Registered: January 2018
Junior Member
Hi there,

I am writing a Php module using Eclipse

Version: Oxygen.2 Release (4.7.2)
Build id: 20171218-0600

If a function contains global variable declaration

global $user;

and some assignment

$user = user_load('Administrator');

then if I add Javadoc Comments to a function below, using /** I dont see auto-generated @param $var declaration anymore.

Also variable name auto complete stops working too.

If I delete global $user from a function above then comments for the function below are generated perfectly.


* First function
* @param unknown $row
public function FirstFunction($row) {
global $user;
$user = user_load('Administrator');

* Second function
public function SecondFunction($row) {

No more @param unknown $row is present.

Thank you for any help.
Previous Topic:Modifying Include Path NullPointerException
Next Topic:oxygen synchronized project cannot fetch files
Goto Forum:

Current Time: Tue Feb 20 00:20:38 GMT 2018

Powered by FUDForum. Page generated in 0.01344 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software