Skip to main content


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.

Exmaple:

/**
* 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:HOW TO INSTALL AND RUN XDEBUG IN ECLIPSE OXYGEN with PDT
Goto Forum:
  


Current Time: Wed Apr 24 14:20:13 GMT 2024

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

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

Back to the top