Skip to main content



      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 10:57 Go to next message
Eclipse UserFriend
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 00:23 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: Comment NOT ignored in eclipse PHP project [message #1787146 is a reply to message #1786891] Sat, 19 May 2018 15:09 Go to previous message
Eclipse UserFriend
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: Sat Jul 12 20:22:50 EDT 2025

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

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

Back to the top