Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Comment NOT ignored in eclipse PHP project(eclipse comment)
Comment NOT ignored in eclipse PHP project [message #1786788] Fri, 11 May 2018 14:57 Go to next message
S. Mising name is currently offline S. Mising nameFriend
Messages: 10
Registered: May 2011
Junior Member
I just imported some files into my new PHP project.
Eclipse Oxygen 4.7.3

The comments are NOT being ignored. I tried CLEAN, Rebuild project, etc.


  /**
     * Specify the font properties for the labels
     *
     * @param $aFFamily Font famly
     * @param $aFStyle Font style
     * @param $aFSize Font size
     */
    function SetFont($aFFamily,$aFStyle=FS_NORMAL,$aFSize=10) {
...


In the above I get "FONT cannot be resolved to a type "
I get 3 errors on the 3 lines above that ARE COMMENTED OUT.
ie
* @param $aFFamily Font famly <- Font cannot be resolved to a type

Suggestions?

TIA

Steve42

Re: Comment NOT ignored in eclipse PHP project [message #1786891 is a reply to message #1786788] Tue, 15 May 2018 04:23 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3254
Registered: July 2009
Senior Member

While it is in a comment, it is in a documentation comment, and as a rule you want to refer to types that actually exist in your documentation.

Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Comment NOT ignored in eclipse PHP project [message #1787146 is a reply to message #1786891] Sat, 19 May 2018 19:09 Go to previous message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 243
Registered: March 2013
Senior Member
For historical reason PDT support two types of phpdoc @param:
1. @param type $varname
2. @param $varname type

please for now please modify as @param mixed(or any other known type) $varname


Previous Topic:Keep getting "Error updating dirty state editor
Next Topic:Customise text in Editor tabs
Goto Forum:
  


Current Time: Wed Sep 26 06:39:06 GMT 2018

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

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

Back to the top